WIP: passkey auth
This commit is contained in:
16
server/internal/models/passkey.go
Normal file
16
server/internal/models/passkey.go
Normal file
@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Passkey struct {
|
||||
ID string `gorm:"primaryKey"`
|
||||
|
||||
PublicKey string
|
||||
Algorithm int
|
||||
CreatedAt time.Time
|
||||
LastUsed time.Time
|
||||
|
||||
// User
|
||||
UserID uint
|
||||
User User
|
||||
}
|
@ -9,8 +9,12 @@ import (
|
||||
type User struct {
|
||||
ID uint32 `gorm:"primaryKey"`
|
||||
|
||||
Username string
|
||||
Password string
|
||||
Username string
|
||||
Password string
|
||||
Challenge *string
|
||||
|
||||
// Passkeys
|
||||
Passkeys []Passkey
|
||||
|
||||
// Profile picture
|
||||
ProfilePictureID *uint
|
||||
|
Reference in New Issue
Block a user