Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckoutSession ¶
func CheckoutSession(c *gin.Context) (*request.CustomClaims, error)
func Cors ¶
func Cors() gin.HandlerFunc
func JWTAuth ¶
func JWTAuth() gin.HandlerFunc
Types ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateToken ¶
func (j *JWT) CreateToken(claims request.CustomClaims) (string, error)
CreateToken .
func (*JWT) ParseToken ¶
func (j *JWT) ParseToken(tokenString string) (*request.CustomClaims, error)
ParseToken .
Click to show internal directories.
Click to hide internal directories.