Documentation ¶
Index ¶
Constants ¶
View Source
const UIDKey uidType = "uid"
Variables ¶
This section is empty.
Functions ¶
func Authenticator ¶
Authenticator is middleware who sends a 401 response for requests with bad tokens and accepts requests with good tokens.
func CompareHashAndPassword ¶
CompareHashAndPassword compares a hash and a password returning an error when the hash an password do not match.
func GenerateFromPassword ¶
GenerateFromPassword returns a hashed version of the given string.
func GetTokenForUser ¶
GetTokenForUser returns a token with the given claims.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.