Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJWTMissing = echo.NewHTTPError(http.StatusUnauthorized, "missing or malformed jwt")
	ErrJWTInvalid = echo.NewHTTPError(http.StatusForbidden, "invalid or expired jwt")
)

Functions

func JWT

func JWT(key interface{}) echo.MiddlewareFunc

func JWTWithConfig

func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc

Types

type JWTConfig

type JWTConfig struct {
	Skipper    Skipper
	SigningKey interface{}
}

type Skipper

type Skipper func(c echo.Context) bool

Source Files