auth

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL