Documentation ¶
Index ¶
- Constants
- Variables
- func RefreshFromRequest(c *gin.Context) (neoSignToken, neoRefreshToken string, err error)
- func Sign(ctx Context) (tokenString, refreshToken string, err error)
- func SignRefreshToken(ctx Context) (tokenString string, err error)
- func SignToken(ctx Context) (tokenString string, err error)
- type Context
Constants ¶
View Source
const ( JWT_SECRET = "jwt_secret" JWT_REFRESH_SECRET = "jwt_refresh_secret" )
Variables ¶
View Source
var ( // ErrMissingHeader means the `Authorization` header was empty. ErrMissingHeader = errors.New("the length of the `Authorization` header is zero") )
Functions ¶
func RefreshFromRequest ¶
func SignRefreshToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.