Introduction
Batteries-included authentication for FastAPI — sessions, accounts, and a ready-made router.
Aura Auth is a small, explicit library for FastAPI and async SQLAlchemy. The default install gives you email/password registration and login with:
- Identity vs credentials — a
Userrow for who someone is, andAccountrows for how they sign in (includingprovider_id="credential"with a bcrypt hash). - Server-side sessions — opaque tokens stored in the database so you can revoke them, list devices, and log out cleanly.
- Optional cookie transport — HTTP-only session cookies, or Bearer tokens in the
Authorizationheader.
The project is early beta: pin versions in production and follow release notes when upgrading.
Install
Requires Python 3.11+.
uv add aura-auth
# or: pip install aura-authInstall from GitHub during beta:
uv add "aura-auth @ git+https://github.com/snapwre/aura-auth.git"