fix: add missing passkey flags to make icloud passkeys work

This commit is contained in:
Elias Schneider
2024-08-13 23:19:36 +02:00
parent 5749d0532f
commit cc407e17d4
5 changed files with 13 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ func (u User) WebAuthnCredentials() []webauthn.Credential {
AttestationType: credential.AttestationType,
PublicKey: credential.PublicKey,
Transport: credential.Transport,
Flags: webauthn.CredentialFlags{
BackupState: credential.BackupState,
BackupEligible: credential.BackupEligible,
},
}
}

View File

@@ -25,6 +25,9 @@ type WebauthnCredential struct {
AttestationType string `json:"attestationType"`
Transport AuthenticatorTransportList `json:"-"`
BackupEligible bool `json:"backupEligible"`
BackupState bool `json:"backupState"`
UserID string
}