Documentation ¶
Overview ¶
Package token implements a some utility related to token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeScope ¶
DecodeScope returns the decoded scope.
func EncodeScope ¶
EncodeScope returns the encoded scope.
func EncodeScopeIndex ¶
EncodeScopeIndex encodes the scope identified by the given index.
func ServeError ¶
func ServeError(writer http.ResponseWriter, response Error, code int)
ServeError serves an error when authenticating with the bearer token.
Types ¶
Click to show internal directories.
Click to hide internal directories.