1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-15 21:35:04 +00:00

chore: upgrade dependencies

This commit is contained in:
Elias Schneider
2025-10-24 12:14:19 +02:00
parent 10d640385f
commit 6362ff9861
15 changed files with 1488 additions and 1585 deletions

View File

@@ -89,6 +89,7 @@ func (s *WebAuthnService) BeginRegistration(ctx context.Context, userID string)
sessionToStore := &model.WebauthnSession{
ExpiresAt: datatype.DateTime(session.Expires),
Challenge: session.Challenge,
CredentialParams: session.CredParams,
UserVerification: string(session.UserVerification),
}
@@ -130,9 +131,10 @@ func (s *WebAuthnService) VerifyRegistration(ctx context.Context, sessionID, use
}
session := webauthn.SessionData{
Challenge: storedSession.Challenge,
Expires: storedSession.ExpiresAt.ToTime(),
UserID: []byte(userID),
Challenge: storedSession.Challenge,
Expires: storedSession.ExpiresAt.ToTime(),
CredParams: storedSession.CredentialParams,
UserID: []byte(userID),
}
var user model.User