Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeJWT ¶
func GenerateJWT ¶
func GenerateJWT(data CustomClaims, secretKey string) (string, error)
Types ¶
type CustomClaims ¶
type CustomClaims struct { UserID int64 `json:"user_id"` Email string `json:"email"` jwt.StandardClaims }
CustomClaims represents the custom claims you want to include in the JWT payload.
Click to show internal directories.
Click to hide internal directories.