Skip to content

feat: add Google OAuth login with NextAuth #1953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

not-your-average-devil
Copy link

@not-your-average-devil not-your-average-devil commented Jun 18, 2025

What does this PR do?

Adds Google OAuth login functionality using NextAuth.

Fixes #1952

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • Set up environment variables GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET
  • Start the server locally
  • Go to /api/auth/signin and verify Google login works

(Note: Only basic manual testing was performed locally)

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I have read the contributing guide
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have checked if my PR needs changes to the documentation
  • I have checked if my changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked if new and existing unit tests pass locally with my changes

Copy link

vercel bot commented Jun 18, 2025

@not-your-average-devil is attempting to deploy a commit to the Piyush Garg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@not-your-average-devil
Copy link
Author

Hi! Just a quick note — the only failing check is from Vercel and it says “Authorization required to deploy.”
The Google OAuth feature is working and was manually tested locally. Let me know if you'd like any changes from my end.

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.

Add Google OAuth Login Option using NextAuth
1 participant