Skip to content

src/dazzle_back/runtime/auth/routes_2fa.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Two-factor authentication routes.

Key Exports

  • _TwoFaDeps
  • create_2fa_routes

Dependencies

Imports

  • dataclasses.dataclass
  • dataclasses.field
  • datetime.timedelta
  • functools.partial
  • typing.Any
  • dazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLE
  • dazzle_back.runtime._fastapi_compat.APIRouter
  • dazzle_back.runtime._fastapi_compat.FastAPIRequest
  • dazzle_back.runtime._fastapi_compat.JSONResponse
  • dazzle_back.runtime._fastapi_compat.Response
  • crypto.cookie_secure
  • events.emit_user_logged_in
  • models.TwoFactorSetupRequest
  • models.TwoFactorVerifyRequest
  • models.UserRecord
  • store.AuthStore
  • fastapi.HTTPException
  • fastapi.HTTPException
  • dazzle_back.runtime.totp.generate_totp_secret
  • dazzle_back.runtime.totp.get_totp_uri

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • 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
  • tests/unit/test_auth_password_reset.py

Notes

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