jwt import "github.com/goadesign/goa/middleware/security/jwt"
Overview Index Overview Index Variables func ContextJWT(ctx context.Context) *jwt.Token func New(validationKeys interface{}, validationFunc goa.Middleware, scheme *goa.JWTSecurity) goa.Middleware func WithJWT(ctx context.Context, t *jwt.Token) context.Context Package files context.go jwt.go
Variables var ErrJWTError = goa.NewErrorClass("jwt_security_error", 401) ErrJWTError is the error returned by this middleware when any sort of validation or assertion fails during processing.
func ContextJWT func ContextJWT(ctx context.Context) *jwt.Token ContextJWT retrieves the JWT token from a context that went through our security middleware.
↧