jwt model added

master
nima 2024-07-13 16:41:11 +03:30
parent ae8ec1c3ab
commit 4694b12e1b
1 changed files with 10 additions and 0 deletions

10
models/jwt.go 100644
View File

@ -0,0 +1,10 @@
package models
import "github.com/dgrijalva/jwt-go"
// JWTClaims defines the structure of JWT claims.
type JWTClaims struct {
ID uint `json:"id"`
Role string `json:"role"`
jwt.StandardClaims
}