Overview
nexfetch-auth uses an adapter pattern for database access. Pick one or implement your own.
| Adapter | Module | Install |
|---|---|---|
| SQLAlchemy | nexfetch_auth.db.adapters.sqlalchemy | pip install 'nexfetch-auth[sqlalchemy]' |
| PostgreSQL | nexfetch_auth.db.adapters.sqlalchemy | pip install 'nexfetch-auth[postgresql]' |
| MongoDB | nexfetch_auth.db.adapters.mongodb | pip install 'nexfetch-auth[mongodb]' |
| Memory | nexfetch_auth.db.adapters.memory | (built in) |
| Custom | Your own | Implement DBAdapter protocol |
Schema
5 tables/collections, created automatically:
| Table | Purpose |
|---|---|
users | User profiles |
sessions | Active sessions |
accounts | OAuth account links |
verifications | Reset/verification tokens |
rate_limits | Rate limiter state |