Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CookieKey is the name of the cookie used for authentication CookieKey = "u" // CookieMaxAge is the expiration age (in seconds) used for the authentication // cookie CookieMaxAge = 3600 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
Info ...
func DecodeAndVerify ¶
DecodeAndVerify decodes the user but also validates that the encoded user object is still valid.
func DecodeFromRequest ¶
DecodeFromRequest decodes the user from the cookie found in the http.Request.
Click to show internal directories.
Click to hide internal directories.