feat: fully featured token checks
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m39s
Build and Deploy Go App / deploy (push) Successful in 46s

This commit is contained in:
nihonium 2025-12-06 06:25:21 +03:00
parent 7956a8a961
commit 713c0adc14
Signed by: nihonium
GPG key ID: 0251623741027CFC
6 changed files with 226 additions and 77 deletions

10
auth/claims.go Normal file
View file

@ -0,0 +1,10 @@
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
}