pkg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidToken = errors.New("invalid token")
)

Functions

func GetBearer

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

func GetCookie

func GetCookie(r *http.Request, typ jwt.TokenType) (string, error)

func GetToken

func GetToken(r *http.Request, typ jwt.TokenType) (string, error)

func SetBearer

func SetBearer(r *http.Request, token string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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