Documentation
¶
Index ¶
Constants ¶
View Source
const TokenLength = 32 // bytes
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken creates a cryptographically secure random token
func ValidateToken ¶
ValidateToken compares the cookie token with the form token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.