feat: use JWT Subject
This commit is contained in:
parent
713c0adc14
commit
714ef57027
3 changed files with 15 additions and 16 deletions
|
|
@ -3,8 +3,7 @@ package auth
|
|||
import "github.com/golang-jwt/jwt/v5"
|
||||
|
||||
type TokenClaims struct {
|
||||
UserID string `json:"user_id"`
|
||||
Type string `json:"type"`
|
||||
ImpID *string `json:"imp_id,omitempty"`
|
||||
Type string `json:"type"`
|
||||
ImpID *string `json:"imp_id,omitempty"`
|
||||
jwt.RegisteredClaims
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue