{"repo":"wei30172/nextauth-v5-mongodb-typescript-example","free":true,"listed":false,"github":"https://github.com/wei30172/nextauth-v5-mongodb-typescript-example","clone":"git clone https://github.com/wei30172/nextauth-v5-mongodb-typescript-example.git","description":"A full-stack authentication demo built with Next.js 14, NextAuth.js v5, MongoDB (via Mongoose), and TypeScript. Supports both Google OAuth and email/password login, with internationalization (i18n) and comprehensive authentication flows.","language":"TypeScript","stars":36,"topics":["mongodb","mongoose","nextauth","nextjs","react","tailwindcss","typescript"],"license":null,"category":"auth-billing-email","readme_excerpt":"Next.js 14 Fullstack NextAuth.js & i18n Example (with MongoDB + TypeScript) A full-stack authentication demo built with Next.js 14, NextAuth.js v5, MongoDB (via Mongoose), and TypeScript. Supports both Google OAuth and email/password login, with internationalization (i18n) and comprehensive authentication flows. ✨ Features - Google OAuth Login – Authenticate users via their Google accounts. - Email & Password Authentication: Sign-in with email and password. - Email Verification: Ensure account validity by requiring users to confirm their email address. - Forgot Password Flow: Allow users to reset their password through a email link. - Two-Factor Authentication (2FA): Login requires a digit verification code sent via email. - User Account Settings: Let users update their username, change passwords, and enable or disable 2FA. - Internationalization (i18n) with Auth Integration: Built-in locale routing with authentication middleware support. This is a Next.js project bootstrapped with create-next-app . 🚀 Getting Started Run the development server: Open http://localhost:3000 with your browser to see the result. ⚙️ Environment Variables Create a .env file in the project root and include the following: 🔐 Getting Google OAuth Credentials How to obtain GOOGLE CLIENT ID & GOOGLE CLIENT SECRET - Go to Google Cloud Console . - Create a new project. - Navigate to APIs & Services → Credentials. - Click Create Credentials → OAuth client ID. - Choose Web application. - Under Authorized Ja","default_branch":null,"files":null,"tree":[],"storefront":"/r/wei30172","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wei30172/nextauth-v5-mongodb-typescript-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}