{"repo":"SENODROOM/MERN-Social-Auth","free":true,"listed":false,"github":"https://github.com/SENODROOM/MERN-Social-Auth","clone":"git clone https://github.com/SENODROOM/MERN-Social-Auth.git","description":"A full-stack MERN authentication system implementing OAuth-based social login with Google and GitHub, secure JWT sessions, and protected routes","language":"JavaScript","stars":10,"topics":["authentication","environment-variables","social"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"MERN Social Auth — Complete Guide A full-stack MERN application with OAuth 2.0 authentication via Google, Facebook, GitHub, LinkedIn, and Instagram . --- 📁 Project Structure --- 🚀 Quick Start 1. Install Dependencies 2. Configure Environment Variables 3. Start MongoDB 4. Start the App Open http://localhost:3000 --- 🔐 How OAuth Authentication Works (Step by Step) JWT Flow for Protected Routes --- 🔑 Getting OAuth Credentials Google 1. Go to https://console.cloud.google.com/ 2. Create a new project 3. Enable \"Google+ API\" or \"Google Identity\" 4. Go to Credentials → Create OAuth 2.0 Client ID 5. Application type: Web application 6. Authorized redirect URIs: http://localhost:5000/api/auth/google/callback 7. Copy Client ID → GOOGLE CLIENT ID 8. Copy Client Secret → GOOGLE CLIENT SECRET Facebook 1. Go to https://developers.facebook.com/ 2. Create a new App → Consumer type 3. Add Facebook Login product 4. Settings → Valid OAuth Redirect URIs: http://localhost:5000/api/auth/facebook/callback 5. Copy App ID → FACEBOOK APP ID 6. Copy App Secret → FACEBOOK APP SECRET GitHub 1. Go to https://github.com/settings/developers 2. Click New OAuth App 3. Homepage URL: http://localhost:3000 4. Authorization callback URL: http://localhost:5000/api/auth/github/callback 5. Copy Client ID → GITHUB CLIENT ID 6. Generate Client Secret → GITHUB CLIENT SECRET LinkedIn 1. Go to https://www.linkedin.com/developers/ 2. Create App → fill in details 3. Auth tab → Add redirect URL: http://localhost:5000/api","default_branch":null,"files":null,"tree":[],"storefront":"/r/SENODROOM","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SENODROOM/MERN-Social-Auth/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."}