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{
|
claims := types.JwtClaims{
|
||||||
ID: id,
|
ID: id,
|
||||||
Identity: identity,
|
Identity: identity,
|
||||||
|
Client: client,
|
||||||
Extend: extend,
|
Extend: extend,
|
||||||
Owner: owner,
|
Owner: owner,
|
||||||
Role: role,
|
Role: role,
|
||||||
|
|
|
@ -9,6 +9,7 @@ type JwtClaims struct {
|
||||||
ID uint `json:"id"`
|
ID uint `json:"id"`
|
||||||
Identity string `json:"identity"`
|
Identity string `json:"identity"`
|
||||||
Extend map[string]string `json:"extend"`
|
Extend map[string]string `json:"extend"`
|
||||||
|
Client string `json:"client"`
|
||||||
Owner any `json:"owner"`
|
Owner any `json:"owner"`
|
||||||
Role string `json:"role"`
|
Role string `json:"role"`
|
||||||
ExpiresAt int64 `json:"exp"`
|
ExpiresAt int64 `json:"exp"`
|
||||||
|
|
Loading…
Reference in New Issue