Robust and scalable full-stack template for building applications with Nuxt 3
MIT License
This repository provides a starting point for building secure and robust authentication systems with Nuxt.js. It's designed to be a comprehensive template that includes all the necessary features for managing user accounts, from registration and login to password recovery and account verification via emails.
User Management:
Robust Security:
Scalable Architecture:
git clone https://github.com/vircoding/nuxt-authentication-starter-template.git
cd nuxt-authentication-starter-template
npm install
DATABASE_URL=<your-mongodb-url>
JWT_REFRESH_SECRET=<your-refresh-secret-key>
JWT_ACCESS_SECRET=<your-access-secret-key>
JWT_VERIFICATION_SECRET=<your-verification-secret-key>
EMAIL_HOST=<host-for-sending-emails>
EMAIL_USER=<your-email>
EMAIL_PASSWORD=<your-email-password>
npm run dev
The API uses JWTs for authentication. Access tokens are generated when a user logs in, and refresh tokens are used to obtain new access tokens when the access token expires.
Email verification is handled using Nodemailer. When a new user is created, a verification email is sent to their email address.
Zod is used to validate user data. This helps ensure that data is in the correct format and meets the required constraints.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This template is intended to be a starting point to building a full-stack application. It is not intended to be a complete solution. You may need to modify the code and add additional features to meet your specific needs.