jwtcheck

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTMiddleware

func JWTMiddleware(jwtAudience string, jwtIssuer string, pubKeyPath string, useEmailAsId bool) (func(http.Handler) http.Handler, error)

JWTMiddleware checks and pulls user information from JWT in Authorization header.

Types

type CustomClaimsExample

type CustomClaimsExample struct {
	Email string
	jwt.StandardClaims
}

func (*CustomClaimsExample) Valid

func (c *CustomClaimsExample) Valid() error

Jump to

Keyboard shortcuts

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