context

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCtxRawToken

func GetCtxRawToken(ctx *gin.Context) (string, error)

GetCtxRawToken tries to get the raw token from the context

func GetCtxTokenClaims

func GetCtxTokenClaims(ctx *gin.Context) (*jwt.MapClaims, error)

GetCtxTokenClaims tries to get the token claims from the context

func SetCtxRawToken

func SetCtxRawToken(ctx *gin.Context, rawToken *string)

SetCtxRawToken sets the raw token in the context

func SetCtxTokenClaims

func SetCtxTokenClaims(ctx *gin.Context, 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