feat: fully featured token checks
This commit is contained in:
parent
7956a8a961
commit
713c0adc14
6 changed files with 226 additions and 77 deletions
10
auth/claims.go
Normal file
10
auth/claims.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue