| 123456789101112131415161718192021 |
- package model
- import "time"
- type TokenType string
- const (
- TokenTypeAccess TokenType = "access_token"
- TokenTypeRefresh TokenType = "refresh_token"
- )
- type OauthToken struct {
- Token string
- ExpiredAt time.Time
- RefreshToken string
- RTokenExpiredAt time.Time
- Id string
- }
- type TokenClaim struct {
- Id string `json:"user_id"`
- Timestamp int64 `json:"timestamp"`
- }
|