WIP: passkey auth

This commit is contained in:
2025-03-23 14:33:25 -04:00
parent f05e745d05
commit 93bc18022a
22 changed files with 1500 additions and 459 deletions

View 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
}

View File

@ -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