# `@lucia-auth/adapter-mongodb`

[MongoDB](https://mongodb.com) adapter for Lucia. Can also be used with [Mongoose](https://github.com/Automattic/mongoose).

**[Documentation](https://v3.lucia-auth.com/database/mongodb)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-mongodb/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-mongodb
pnpm add @lucia-auth/adapter-mongodb
yarn add @lucia-auth/adapter-mongodb
```

## Testing

Add MongoDB url to `MONGODB_URL` env var.

```
pnpm test
```
