Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dev-eranda/mern-auth-techniques

This course focuses on advanced authentication techniques in the MERN stack, including secure email verification, password recovery, and automated welcome emails. Learn to implement these features using popular libraries like Mailtrap and JWT for secure token management, enhancing user experience and application security in your web applications.
https://github.com/dev-eranda/mern-auth-techniques

cicd fullstack-development jwt-authentication mern-stack verification-code

Last synced: 20 days ago
JSON representation

This course focuses on advanced authentication techniques in the MERN stack, including secure email verification, password recovery, and automated welcome emails. Learn to implement these features using popular libraries like Mailtrap and JWT for secure token management, enhancing user experience and application security in your web applications.

Awesome Lists containing this project

README

        

Advanced Auth Tutorial

About This:

- 🔧 Backend Setup
- 🗄️ Database Setup
- 🔐 Signup Endpoint
- 📧 Sending Verify Account Email
- 🔍 Verify Email Endpoint
- 📄 Building a Welcome Email Template
- 🚪 Logout Endpoint
- 🔑 Login Endpoint
- 🔄 Forgot Password Endpoint
- 🔁 Reset Password Endpoint
- ✔️ Check Auth Endpoint
- 🌐 Frontend Setup
- 📋 Signup Page UI
- 🔓 Login Page UI
- ✅ Email Verification Page UI
- 📤 Implementing Signup
- 📧 Implementing Email Verification
- 🔒 Protecting Our Routes
- 🔑 Implementing Login
- 🏠 Dashboard Page
- 🔄 Implementing Forgot Password
- 🚀 Super Detailed Deployment

### Setup .env file

```bash
MONGO_URI=your_mongo_uri
PORT=5000
JWT_SECRET=your_secret_key
NODE_ENV=development

MAILTRAP_TOKEN=your_mailtrap_token
MAILTRAP_ENDPOINT=https://send.api.mailtrap.io/

CLIENT_URL= http://localhost:5173
```

### Run this app locally

```shell
npm run build
```

### Start the app

```shell
npm run start
```