jwthttp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 5 Imported by: 0

README

jwtmw

Index

func TokenFromContext

func TokenFromContext(ctx context.Context) (*jwt.Token, error)

TokenFromContext gets the raw token from the context and parses into a *Token

func TokenMiddleware

func TokenMiddleware(j *jwt.JWT, next http.Handler) http.Handler

TokenMiddleware ...

Documentation

Index

Constants

View Source
const ContextKey jwtContextKey = "jwt_context"

Variables

This section is empty.

Functions

func TokenFromContext

func TokenFromContext(ctx context.Context) (*jwt.Token, error)

TokenFromContext gets the raw token from the context and parses into a *Token

func TokenMiddleware

func TokenMiddleware(j *jwt.JWT, next http.Handler) http.Handler

TokenMiddleware ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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