Skip to content

src/dazzle_back/runtime/auth/magic_link.py

Generated: 2026-03-30T04:38:46.883205+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Magic link tokens for one-time authentication.

Reusable primitive for CLI impersonation, passwordless email login, and API-driven session creation.

Key Exports

  • create_magic_link
  • validate_magic_link

Dependencies

Imports

  • secrets
  • datetime.UTC
  • datetime.datetime
  • datetime.timedelta
  • typing.Any

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_magic_link.py
  • tests/unit/test_auth_action_handlers.py
  • tests/unit/test_auth_events.py
  • tests/unit/test_auth_flows.py
  • tests/unit/test_auth_schema_exclusion.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.