From fc0875e494e95bb3fddc4db6e6cbbb7eb86ca7fa Mon Sep 17 00:00:00 2001 From: mstar Date: Mon, 4 Nov 2024 07:54:29 +0100 Subject: [PATCH] Add todo about passkey naming --- storage/user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storage/user.go b/storage/user.go index aed39bf..6a89af8 100644 --- a/storage/user.go +++ b/storage/user.go @@ -67,7 +67,11 @@ type Account struct { // Whether the account got verified and is allowed to be active // For local accounts being active means being allowed to login and perform interactions // For remote users, if an account is not verified, any interactions it sends are discarded - Verified bool + Verified bool + // TODO: Turn this into a map to give passkeys names. + // Needed for supporting a decent passkey management interface. + // Or check if webauthn.Credential has sufficiently easy to identify data + // to use instead of a string mapping PasskeyCredentials []webauthn.Credential `gorm:"serializer:json"` // Webauthn credentials data // Has a RemoteAccountLinks included if remote user RemoteLinks *RemoteAccountLinks