feat: rename jwt to session & introduce upload keys
This commit is contained in:
parent
3fc792fd53
commit
3b02f4931e
7 changed files with 98 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue