added passkey support (closes #6)
All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 2m50s
All checks were successful
test-and-lint / test-and-lint (pull_request) Successful in 2m50s
This commit is contained in:
19
models/passkeys.go
Normal file
19
models/passkeys.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user