Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
Middleware to protect the Routes with JWT Token
Types ¶
type AuthJWTClaims ¶
type AuthJWTClaims struct {
jwt.StandardClaims
Name string `json:"name"`
Email string `json:"email"`
IsAdmin bool `json:"is_admin"`
}
Custom defined Claims I like to use this but i coudn;t figured out how
Click to show internal directories.
Click to hide internal directories.