Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BearerTokenFromCookie ¶
func BearerTokenFromCookie(h *fasthttp.RequestHeader) []byte
BearerTokenFromCookie extracts a bearer token from cookies.
func BearerTokenFromHeader ¶
func BearerTokenFromHeader(h *fasthttp.RequestHeader) []byte
BearerTokenFromHeader extracts a bearer token from Authorization request header.
func LoadBearerToken ¶
LoadBearerToken returns a bearer token stored in the context given (if it's present there).
func StoreBearerToken ¶
func StoreBearerToken(ctx *fasthttp.RequestCtx) error
StoreBearerToken extracts a bearer token from the 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.