Documentation ¶
Index ¶
Constants ¶
View Source
const (
RememberTokenBytes = 32
)
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes will help us generate n random bytes, or will return an error if there was one. This uses the crypto/rand package so it is safe to use with things like remember tokens.
func RememberToken ¶
RememberToken is a helper function designed to generate remember tokens of a predetermined byte size.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.