Documentation ¶
Index ¶
- func CustomHTTPErrorHandler(err error, c echo.Context)
- func ErrorRecoverMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func GenerateEmptyToken() (string, error)
- func GenerateToken(claims Claims) (string, error)
- func JWTErrorChecker(err error, c echo.Context)
- func RefreshToken(tokenStr string) (string, error)
- func SaveToken(token *jwt.Token) error
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPErrorHandler ¶
func CustomHTTPErrorHandler(err error, c echo.Context)
func ErrorRecoverMiddleware ¶ added in v1.0.2
func ErrorRecoverMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func GenerateEmptyToken ¶ added in v1.0.1
func GenerateToken ¶ added in v1.0.1
func JWTErrorChecker ¶ added in v1.0.1
func JWTErrorChecker(err error, c echo.Context)
func RefreshToken ¶ added in v1.0.2
Types ¶
type Claims ¶ added in v1.0.1
type Claims struct {
jwt.StandardClaims
}
func ParseToken ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.