All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 2m50s
20 lines
555 B
Go
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"`
|
|
}
|