context

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: GPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCtxRawToken

func GetCtxRawToken(r *http.Request) (string, error)

GetCtxRawToken tries to get the raw token from the context

func GetCtxTokenClaims

func GetCtxTokenClaims(r *http.Request) (*jwt.MapClaims, error)

GetCtxTokenClaims tries to get the token claims from the context

func SetCtxRawToken

func SetCtxRawToken(r *http.Request, rawToken *string)

SetCtxRawToken sets the raw token in the context

func SetCtxTokenClaims

func SetCtxTokenClaims(r *http.Request, claims *jwt.MapClaims)

SetCtxTokenClaims sets the token claims in the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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