Documentation
¶
Overview ¶
Package csrf provides the CSRF cookie and token helpers shared by the OAuth login and consent flows. Each flow owns a Cookie under its own name; the cookie attributes and token validation are identical across flows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMismatch = errors.New("csrf token mismatch") ErrNoCookie = errors.New("csrf cookie missing") )
Functions ¶
func ValidateToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.