A simple Nuxt 3 example using the Nuxt MongoDB Auth layer to add a mongoDB authentication flow to your project.
For this example to work, add your mongo connection string and main database name into a .env
file:
MONGO_CONNECTION_STRING=
MONGO_DB=
Clone the repo to your system
git clone https://github.com/timb-103/nuxt-mongodb-auth-example.git
Install dependencies
npm i
npm run dev