⚡ update qq/gitee/github oauth2 login
This commit is contained in:
10
utils/jwt.go
10
utils/jwt.go
@@ -9,14 +9,12 @@ import (
|
||||
)
|
||||
|
||||
type RefreshJWTPayload struct {
|
||||
UserID *string `json:"user_id"`
|
||||
RoleID []*int64 `json:"role_id"`
|
||||
Type *string `json:"type" default:"refresh"`
|
||||
UserID *string `json:"user_id"`
|
||||
Type *string `json:"type" default:"refresh"`
|
||||
}
|
||||
type AccessJWTPayload struct {
|
||||
UserID *string `json:"user_id"`
|
||||
RoleID []*int64 `json:"role_id"`
|
||||
Type *string `json:"type" default:"access"`
|
||||
UserID *string `json:"user_id"`
|
||||
Type *string `json:"type" default:"access"`
|
||||
}
|
||||
type AccessJWTClaims struct {
|
||||
AccessJWTPayload
|
||||
|
Reference in New Issue
Block a user