Skip to content

πŸ” Google Authentication Integration with NextAuth β€” Secure Login #9

Open
ameerhmz wants to merge 2 commits intoAyushAwasthi2384:masterfrom
ameerhmz:feat/google-auth
Open

πŸ” Google Authentication Integration with NextAuth β€” Secure Login #9
ameerhmz wants to merge 2 commits intoAyushAwasthi2384:masterfrom
ameerhmz:feat/google-auth

Conversation

@ameerhmz
Copy link

🌟 Overview

Adds Google OAuth login using NextAuth.js. Credentials are securely stored in .env.local.

πŸ”§ Changes

  • Google OAuth login
  • .env.local for CLIENT_ID, CLIENT_SECRET, NEXTAUTH_SECRET
  • Server-side authentication
  • Redirect to dashboard
  • Smooth UX for sign-in/sign-out

πŸ–Ό Screenshots / Demo

Screenshot 2025-10-12 at 3 37 59β€―AM Screenshot 2025-10-12 at 3 38 09β€―AM Screenshot 2025-10-12 at 3 38 18β€―AM Screenshot 2025-10-12 at 3 38 24β€―AM

βœ… Benefits

  • Secure, maintainable authentication
  • Clean backend code
  • Better UX
  • Easy to extend

πŸ“Œ Testing Steps

  1. Run npm install and npm run dev
  2. Navigate to login page
  3. Click Sign in with Google
  4. Confirm successful login

πŸ”— Linked Issue

Fixes #

@vercel
Copy link

vercel bot commented Oct 11, 2025

@ameerhmz is attempting to deploy a commit to the ayushawasthi2384's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ameerhmz ameerhmz changed the title πŸ” Google Authentication Integration with NextAuth β€” Secure Login for StudyBuddy2 πŸ” Google Authentication Integration with NextAuth β€” Secure Login Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant