added passkey support (closes #6)
All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 2m50s

This commit is contained in:
2026-06-10 03:24:31 +02:00
parent 01ec41288a
commit fb3be56959
18 changed files with 1680 additions and 61 deletions

19
models/passkeys.go Normal file
View File

@@ -0,0 +1,19 @@
package models
type PasskeyCredential struct {
ID string `json:"id"`
UserID string `json:"user_id"`
CredentialID string `json:"credential_id"`
Name string `json:"name"`
CredentialData string `json:"-"`
CreatedAt int64 `json:"created_at"`
LastUsedAt int64 `json:"last_used_at,omitempty"`
}
type PasskeyChallenge struct {
Token string `json:"token"`
UserID string `json:"user_id"`
Ceremony string `json:"ceremony"`
SessionData string `json:"-"`
ExpiresAt int64 `json:"expires_at"`
}