pkg

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 8 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 GetRoleHash

func GetRoleHash(role uint32, group *uuid.UUID) []byte

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