From 4694b12e1b05feb8bdc26f30d1bc0fedbb839308 Mon Sep 17 00:00:00 2001 From: nima Date: Sat, 13 Jul 2024 16:41:11 +0330 Subject: [PATCH] jwt model added --- models/jwt.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 models/jwt.go 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