jwt model added
parent
ae8ec1c3ab
commit
4694b12e1b
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue