{"id":19915060,"url":"https://github.com/dpvasani/advancedauth","last_synced_at":"2026-02-08T01:31:08.118Z","repository":{"id":259951879,"uuid":"879899690","full_name":"dpvasani/AdvancedAuth","owner":"dpvasani","description":"AdvancedAuth is a comprehensive authentication tutorial that provides a full-stack setup for user authentication and authorization. It includes both backend and frontend modules, covering essential functionality such as email verification, password reset, and secure session management. ","archived":false,"fork":false,"pushed_at":"2024-11-04T03:34:19.000Z","size":637,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T21:56:43.641Z","etag":null,"topics":["authentication","authorization","expressjs","mern-stack","mongodb","mongoose","nodejs","reactjs"],"latest_commit_sha":null,"homepage":"https://advancedauth-frontend.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpvasani.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-28T18:38:28.000Z","updated_at":"2024-11-13T11:28:34.000Z","dependencies_parsed_at":"2024-10-28T19:48:25.085Z","dependency_job_id":"117569b7-293f-4073-8451-8c912b8c9fd3","html_url":"https://github.com/dpvasani/AdvancedAuth","commit_stats":null,"previous_names":["dpvasani/advancedauth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dpvasani/AdvancedAuth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvasani%2FAdvancedAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvasani%2FAdvancedAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvasani%2FAdvancedAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvasani%2FAdvancedAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpvasani","download_url":"https://codeload.github.com/dpvasani/AdvancedAuth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpvasani%2FAdvancedAuth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29216084,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T00:10:47.190Z","status":"ssl_error","status_checked_at":"2026-02-08T00:10:43.589Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authorization","expressjs","mern-stack","mongodb","mongoose","nodejs","reactjs"],"created_at":"2024-11-12T21:38:19.829Z","updated_at":"2026-02-08T01:31:08.103Z","avatar_url":"https://github.com/dpvasani.png","language":"JavaScript","readme":"# Advanced Auth 🔒\n\n![Demo App](Frontend/public/screenshot-for-readme.png)\n\n## About This Project\n\nAdvancedAuth is a comprehensive authentication project that provides a full-stack setup for user authentication and authorization. It includes both backend and frontend modules, covering essential functionality such as email verification, password reset, and secure session management. This project is ideal for developers looking to implement robust authentication in their applications.\n\n## Features\n\nThis tutorial covers the complete setup of an advanced authentication system, with detailed steps and endpoints:\n\n- 🔧 **Backend Setup** – Initialize backend server, database, and key configurations\n- 🗄️ **Database Setup** – Connect MongoDB and manage user data securely\n- 🔐 **Signup Endpoint** – Create new user accounts and send verification emails\n- 📧 **Sending Verification Email** – Guide users to verify their accounts via email\n- 🔍 **Email Verification Endpoint** – Confirm and activate user accounts\n- 📄 **Welcome Email Template** – Send a welcome email upon successful verification\n- 🚪 **Logout Endpoint** – Manage user sessions effectively\n- 🔑 **Login Endpoint** – Authenticate users securely\n- 🔄 **Forgot Password Endpoint** – Allow users to reset forgotten passwords\n- 🔁 **Reset Password Endpoint** – Secure password resetting process\n- ✔️ **Check Auth Endpoint** – Verify user authentication status\n- 🌐 **Frontend Setup** – Develop the UI for all authentication pages\n- 📋 **Signup Page UI** – Interface for user registration\n- 🔓 **Login Page UI** – Interface for user login\n- ✅ **Email Verification Page UI** – Confirm user emails\n- 📤 **Implementing Signup** – Integrate signup and verification with the backend\n- 📧 **Implementing Email Verification** – Verify emails after signup\n- 🔒 **Protecting Routes** – Secure routes based on user authentication\n- 🔑 **Implementing Login** – Add login functionality to the frontend\n- 🏠 **Dashboard Page** – Display user-specific data after login\n- 🔄 **Implementing Forgot Password** – Allow password reset requests\n- 🚀 **Detailed Deployment** – Steps to deploy both backend and frontend\n\n## Setup `.env` File\n\nIn both `Backend` and `Frontend`, create an `.env` file with the following environment variables:\n\n```plaintext\n# Backend .env file\nPORT=5000\nMONGODB_URL=your_mongo_url\nJWT_SECRET=your_jwt_secret\nNODE_ENV=development\n\nMAILTRAP_TOKEN=your_mailtrap_token\nMAILTRAP_ENDPOINT=https://send.api.mailtrap.io/\n\nCLIENT_URL=http://localhost:5173\n```\n\n## Running the Project Locally\n\n### 1. Backend Setup\n\nTo set up and start the backend server:\n\n```shell\ncd Backend\nnpm install\nnpm run dev\n```\n\nThis will start the backend server on `http://localhost:5000`.\n\n### 2. Frontend Setup\n\nTo set up and start the frontend application:\n\n```shell\ncd Frontend\nnpm install\nnpm run dev\n```\n\nThis will start the frontend on `http://localhost:5173`.\n\n\n### Building and Starting the App in Production\n\nTo build and start the app in production mode:\n\n```shell\nnpm run build\nnpm start\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n© Darshan Vasani. All Rights Reserved.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpvasani%2Fadvancedauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpvasani%2Fadvancedauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpvasani%2Fadvancedauth/lists"}