middleware

package
v0.0.0-...-437e729 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UserIDKey contextKey = "userID"

Variables

This section is empty.

Functions

func JWTMiddleware

func JWTMiddleware(jwtKey []byte) func(http.Handler) http.Handler

Types

type JwtClaims

type JwtClaims struct {
	UserID string `json:"userID"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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