feat: rename jwt to session & introduce upload keys

This commit is contained in:
hexlocation 2025-06-21 19:47:02 +02:00
parent 3fc792fd53
commit 3b02f4931e
7 changed files with 98 additions and 15 deletions

View file

@ -37,6 +37,7 @@ type User struct {
Blacklisted bool `json:"blacklisted"`
Email string `json:"email"`
CreatedAt time.Time `json:"created_at"`
HashedApiKey string `json:"hashed_api_key"`
}
type AvatarDecorationData struct {
@ -50,7 +51,7 @@ type ExchangeCodeRequest struct {
RedirectUri string `json:"redirect_uri"`
}
type Claims struct {
type SessionClaims struct {
User User `json:"user"`
Exp uint64 `json:"exp"`
jwt.RegisteredClaims