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