Files
MiauInv/models/passkeys.go
miaurizius fb3be56959
All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 2m50s
added passkey support (closes #6)
2026-06-10 03:24:31 +02:00

20 lines
555 B
Go

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"`
}