src/dazzle_back/runtime/auth/store.py¶
Generated: 2026-03-30T04:38:46.980116+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Authentication store (PostgreSQL) — user CRUD, sessions, and 2FA state.
Key Exports¶
UserStoreMixinTwoFactorMixinSessionStoreMixinAuthStorecreate_userget_user_by_emailget_user_by_idauthenticateupdate_passwordcreate_password_reset_tokenvalidate_password_reset_tokenconsume_password_reset_tokenlist_usersupdate_userenable_totpdisable_totpenable_email_otpdisable_email_otpset_recovery_codes_generatedget_totp_secret
Dependencies¶
Imports¶
loggingsecretsdatetime.UTCdatetime.datetimedatetime.timedeltatyping.Anyuuid.UUIDcrypto.hash_passwordcrypto.verify_passwordmodels.AuthContextmodels.SessionRecordmodels.UserRecordpsycopgpsycopg.rows.dict_rowjsonjsonjsonjsondazzle_back.runtime.query_builder.quote_identifieruuid.UUID
Event Interactions¶
None detected.
Invariants and Assumptions¶
-
Add 2FA columns if they don't exist (idempotent migration)¶
Tests¶
tests/unit/sentinel/test_store.pytests/unit/test_system_entity_store.pytests/unit/test_grant_store.pytests/unit/test_activity_store.pytests/unit/test_otp_store.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.