Documentation ¶ Index ¶ Variables func GetBearer(r *http.Request) (string, error) func GetCookie(r *http.Request, typ jwt.TokenType) (string, error) func GetToken(r *http.Request, typ jwt.TokenType) (string, error) func SetBearer(r *http.Request, token string) 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. Source Files ¶ View all Source files bearer.go Directories ¶ Show internal Expand all Path Synopsis auth Click to show internal directories. Click to hide internal directories.