Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Key1 = []byte("ebe3vxIP7sblVvUHXb7ZaiMPuz4oXo0l") Key2 = []byte("sadfkhjlkkljKFJDSLAFUDASLFJKLjfj113d2") IssUer = "K5mBPBYNQeNWEBvCTE5msog3KSGTdhmI" )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { SetLoginToken(ctx *gin.Context, uid int64) (string, string, error) SetJWTToken(ctx *gin.Context, uid int64, ssid string) (string, error) ExtractToken(ctx *gin.Context) string CheckSession(ctx *gin.Context, ssid string) error ClearToken(ctx *gin.Context) error // contains filtered or unexported methods }
func NewJWTHandler ¶
func NewJWTHandler(c redis.Cmdable) Handler
type RefreshClaims ¶
Click to show internal directories.
Click to hide internal directories.