Skip to content

taiseen/learning-advanced-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

15 - Sep - 2024

Learning Advanced Auth

About this project:-

No Backend - System Frontend - System
1 🗄️ Database Setup 📋 Registration Page UI
2 🔐 Registration Endpoint 🔓 Login Page UI
3 📧 Send Email Verification Code ✅ Email Verification Page UI
4 🔍 Verify Email Endpoint 📤 Implementing Registration
5 📧 Building a Welcome Email Template 📧 Implementing Email Verification
6 🔑 Login Endpoint 🔒 Protecting Our Routes
7 🚫 Logout Endpoint 🔑 Implementing Login
8 🔄 Forgot Password Endpoint 🏠 Dashboard Page
9 📧 Send Link to Email for new password 🔄 Implementing Forgot Password
10 🔁 Reset Password Endpoint
11 📧 Send Email for password status
12 ✔️ Check Auth Endpoint

Backend endpoints:-

No Context & File Link Method Api Endpoint
1 Registration POST /api/auth/register
2 Email Verification POST /api/auth/email-verification
3 Login POST /api/auth/login
4 Logout POST /api/auth/logout
5 Forgot Password POST /api/auth/forgot-password
6 Reset Password POST /api/auth/reset-password
7 Check Auth GET /api/auth/check-auth

To run backend please setup the .env file

CLIENT_URL = *****

MONGODB_URI = *****

JWT_SECRET = *****
JWT_EXPIRES_IN = *****

MAILTRAP_TOKEN = *****
MAILTRAP_ENDPOINT = *****

MAILTRAP_SENDER_NAME = *****
MAILTRAP_SENDER_EMAIL = *****

MAILTRAP_COMPANY_INFO_NAME = *****
MAILTRAP_WELCOME_MAIL_TEMPLATE_UUID = *****

Backend run in local:-

cd backend
yarn dev

Frontend run in local:-

cd frontend
yarn dev

NodeJs | Backend Basic Data Flow...