Brijesh's Git Server — k3yst0n3 @ ef65151e3c786a8927a822d95a948038bb17bde4

internal/auth/type.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
package auth

import "github.com/golang-jwt/jwt/v5"

type JwtCustomClaims struct {
	jwt.RegisteredClaims
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Role      string `json:"role"`
	Email     string `json:"email"`
	ID        uint   `json:"id"`
}