Documentation
¶
Overview ¶
Package token generates and hashes the random secrets used for sessions, email verification, and password resets.
A token is handed to the client exactly once. Only its SHA-256 hash is stored, so a database leak doesn't expose working tokens.
Index ¶
Constants ¶
View Source
const Size = 32
Size is the number of random bytes in a token.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.