Files
projectreshoot/jwt/tokens.go
2025-02-10 12:19:49 +11:00

25 lines
313 B
Go

package jwt
import "github.com/google/uuid"
// Access token
type AccessToken struct {
ISS string
Scope string
IAT int64
EXP int64
SUB int
Fresh int64
Roles []string
}
// Refresh token
type RefreshToken struct {
ISS string
Scope string
IAT int64
EXP int64
SUB int
JTI uuid.UUID
}