Skip to content
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

Adding Next.JS Google OAuth Example #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

webdevcody
Copy link

Since google oauth is a little bit different from gitub oauth, I figured I'd send a PR to add an example for how to set this up.

@webdevcody webdevcody changed the title adding example login using next with google oauth Adding Next.JS Google OAuth Example May 22, 2024
});

cookies().set("google_oauth_state", state, {
secure: true,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be secure: process.env.NODE_ENV === "production" for localhost testing

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.

2 participants