qulflabs/qulf ? reverse-engineered prompt
Reverse engineered prompt
Build me a framework agnostic authentication library for Python, inspired by Better Auth, that I can drop into a FastAPI, Litestar, or Django app with very little setup.
I want the core to handle the real auth logic, session management, password hashing, validation, and typing, while the database layer stays separate so I can use SQLAlchemy, SQLModel, or MongoDB without rewriting everything. Please make it plugin friendly too, so I can turn on things like OAuth with GitHub or Google, magic links, TOTP two factor auth, and configurable rate limiting without bloating the core.
It should feel secure by default, well typed, and covered by tests. If you need to check current docs for any framework or library details, go ahead and look them up online. Also include simple examples showing how to mount it in an app and how to configure the secret key and database adapter.
Are you gonna build this?
make sure you review the code using coderabbit