nyanimedb/auth/claims.go
nihonium 713c0adc14
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m39s
Build and Deploy Go App / deploy (push) Successful in 46s
feat: fully featured token checks
2025-12-06 06:25:21 +03:00

10 lines
208 B
Go

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"`
jwt.RegisteredClaims
}