jwt

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(validator TokenValidator, opts ...jwtmiddleware.Option) *Handler

func NewHandlerWithLogger added in v0.42.11

func NewHandlerWithLogger(validator TokenValidator, logger zerolog.Logger, opts ...jwtmiddleware.Option) *Handler

func (*Handler) Wrap

func (h *Handler) Wrap(next http.Handler) http.Handler

type TokenValidator

type TokenValidator interface {
	ValidateToken(ctx context.Context, tokenString string) (interface{}, error)
}

Jump to

Keyboard shortcuts

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