middleware

package
v0.0.0-...-71b1d82 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const UserClaimsCtxKey userClaimsKeyType = 101

Variables

View Source
var (
	ErrInvalidToken = errors.New("token is missing or is invalid")
)

Functions

func Cors

func Cors(h http.Handler) http.Handler

func JWTMiddleware

func JWTMiddleware(config *config.Config) func(h http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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