Documentation
¶
Overview ¶
Package auth documents the authentication-related subpackages and SQL artefacts in this module.
The package itself intentionally contains no runtime helpers. Use the focused subpackages directly:
- passwords for bcrypt hashing, verification, email normalization, and HIBP-compatible password strength checks.
- sessions for random session tokens, token hashing, secure cookies, and request base URL helpers.
- magiclinks for shared TTL and purpose constants used by one-shot email-token flows.
The schema directory contains copyable SQL migrations and queries for consumers that want the shared authentication schema.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package magiclinks holds shared semantics for one-shot email tokens used by the verify-email and password-reset flows: TTL defaults and stable purpose strings used as DB enums.
|
Package magiclinks holds shared semantics for one-shot email tokens used by the verify-email and password-reset flows: TTL defaults and stable purpose strings used as DB enums. |
|
Package passwords provides bcrypt password hashing, email normalization, and breach-check via the HaveIBeenPwned k-anonymity API.
|
Package passwords provides bcrypt password hashing, email normalization, and breach-check via the HaveIBeenPwned k-anonymity API. |
|
Package schema documents the authentication SQL artefacts shipped with this module.
|
Package schema documents the authentication SQL artefacts shipped with this module. |
|
Package sessions provides session token generation, cookie helpers, session policy, and request URL/host detection.
|
Package sessions provides session token generation, cookie helpers, session policy, and request URL/host detection. |
Click to show internal directories.
Click to hide internal directories.