feat: use JWT Subject
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m1s
Build and Deploy Go App / deploy (push) Successful in 37s

This commit is contained in:
nihonium 2025-12-06 06:47:01 +03:00
parent 713c0adc14
commit 714ef57027
Signed by: nihonium
GPG key ID: 0251623741027CFC
3 changed files with 15 additions and 16 deletions

View file

@ -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
}