diff --git a/models/jwt.go b/models/jwt.go new file mode 100644 index 0000000..1b5fad4 --- /dev/null +++ b/models/jwt.go @@ -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 +} \ No newline at end of file