fix jwt
This commit is contained in:
parent
31c602dcc5
commit
28ad46d403
|
@ -34,6 +34,7 @@ func GenerateTokenAes(id uint, identity, client, role string, owner any, extend
|
|||
claims := types.JwtClaims{
|
||||
ID: id,
|
||||
Identity: identity,
|
||||
Client: client,
|
||||
Extend: extend,
|
||||
Owner: owner,
|
||||
Role: role,
|
||||
|
|
|
@ -9,6 +9,7 @@ type JwtClaims struct {
|
|||
ID uint `json:"id"`
|
||||
Identity string `json:"identity"`
|
||||
Extend map[string]string `json:"extend"`
|
||||
Client string `json:"client"`
|
||||
Owner any `json:"owner"`
|
||||
Role string `json:"role"`
|
||||
ExpiresAt int64 `json:"exp"`
|
||||
|
|
Loading…
Reference in New Issue