Documentation ¶
Overview ¶
Package authentication challenges user credentials and creates or destroys cookie based sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsrfToken ¶
func CsrfToken(w http.ResponseWriter, r *http.Request)
CsrfToken will generate a CSRF Token
Types ¶
type Credentials ¶
type Credentials struct {
Email, Password string
}
Credentials are the user provided email and password
func DecodeCredentials ¶
func DecodeCredentials(r *http.Request) (c Credentials)
DecodeCredentials decodes the JSON data into a struct containing the email and password.DecodeCredentials
Click to show internal directories.
Click to hide internal directories.