Finished login system with refresh-tokens

This commit is contained in:
2026-02-27 15:58:05 +01:00
parent 1eb179dac1
commit 3ba8903de9
5 changed files with 186 additions and 26 deletions

View File

@@ -1,10 +1,11 @@
package models
import "time"
type RefreshToken struct {
ID string `json:id`
UserID string `json:userid`
Token string `json:token`
ExpiresAt time.Time `json:expiresat`
ID string `json:id`
UserID string `json:userid`
Token string `json:token`
ExpiresAt int64 `json:expiresat`
CreatedAt int64 `json:createdat`
Revoked bool `json:revoked`
DeviceInfo string `json:deviceinfo`
}