Documentation ¶
Index ¶
- Constants
- func GetBookFn(cfg *config.ServerConfig) func(*gin.Context)
- func IsExpired(token string, key *rsa.PublicKey) (bool, error)
- func RefreshTokenFn(cfg *config.ServerConfig) func(*gin.Context)
- func SigninFn(cfg *config.ServerConfig) func(*gin.Context)
- func VerifyToken(token string, key *rsa.PublicKey) (*entity.Claims, error)
Constants ¶
View Source
const ( JwtTtl = 1 * time.Minute Issuer = "momocomic-backend" CookieTokenEntry = "token" JwtExpiry = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func RefreshTokenFn ¶
func RefreshTokenFn(cfg *config.ServerConfig) func(*gin.Context)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.