mdw

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 GenerateEmptyToken() (string, error)

func GenerateToken added in v1.0.1

func GenerateToken(claims Claims) (string, error)

func JWTErrorChecker added in v1.0.1

func JWTErrorChecker(err error, c echo.Context)

func RefreshToken added in v1.0.2

func RefreshToken(tokenStr string) (string, error)

func SaveToken added in v1.0.1

func SaveToken(token *jwt.Token) error

Types

type Claims added in v1.0.1

type Claims struct {
	jwt.StandardClaims
}

func ParseToken added in v1.0.2

func ParseToken(tokenStr string) (Claims, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL