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.
Click to show internal directories.
Click to hide internal directories.