tokens

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BearerTokenFromCookie

func BearerTokenFromCookie(h *fasthttp.RequestHeader) []byte

BearerTokenFromCookie extracts bearer token from cookies.

func BearerTokenFromHeader

func BearerTokenFromHeader(h *fasthttp.RequestHeader) []byte

BearerTokenFromHeader extracts bearer token from Authorization request header.

func LoadBearerToken

func LoadBearerToken(ctx context.Context) (*token.BearerToken, error)

LoadBearerToken returns bearer token stored in context given (if it's present there).

func StoreBearerToken

func StoreBearerToken(ctx *fasthttp.RequestCtx) error

StoreBearerToken extracts bearer token from header or cookie and stores it in the request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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