Nuxt 3 MongoDB Auth Example

A simple Nuxt 3 example using the Nuxt MongoDB Auth layer to add a mongoDB authentication flow to your project.

Prerequisites

For this example to work, add your mongo connection string and main database name into a .env file:

MONGO_CONNECTION_STRING=
MONGO_DB=

Install

Clone the repo to your system

git clone https://github.com/timb-103/nuxt-mongodb-auth-example.git

Install dependencies

npm i

Running

npm run dev