@theoven/auth-mongo
v0.6.1
Published
Email and password auth for Oven, stored in MongoDB with Mongoose
Maintainers
Readme
@theoven/auth-mongo
The auth-basic flows, stored in MongoDB with Mongoose.
Part of Oven — the batteries-included framework for Bun. Add a brick, get a feature, fully typed.
Install
bun add @theoven/auth @theoven/auth-mongo mongooseUsage
import { mongoAuth } from '@theoven/auth-mongo'
const app = createApp().use(auth(mongoAuth({ connection, secret: env.string('AUTH_SECRET') })))Identical to @theoven/auth-basic in every observable way — the same eight endpoints, the same
tokens, the same rate limits. Only the storage differs, and a test asserts the endpoint lists
match exactly.
Both bricks run the same AuthStore conformance suite from @theoven/auth/testing.
Documentation
https://theoven.app/docs/bricks/auth-mongo/
Reading this with a coding agent? llms.txt is a model-readable
index of the whole documentation set, generated from it at build time.
License
MIT
