Back

Next.Js not showing Google pop up for Signing In

  • 0
  • Accounts
  • Web
Aisha_Agarwal
3 Feb, 2024, 13:50

I am trying to set oauth for google using appwrite for my next.js application. After clicking on the signIn with google button ..it is directly rdirecting to the required home page ..without even showing the pop up window to choose the account and login accordingly. Infact after redirecting ..it is automatically showin a user in the auth section in appwrite console. Hereis how i have initialized my appwrite project for oauth

TL;DR
Developers are having an issue with Next.js not showing the Google pop-up for signing in. Instead, it is redirecting directly to the home page URL without prompting users to choose their account. The desired behavior is for the app to redirect users to the Google OAuth2 page and then return them to the app. The issue is occurring when setting OAuth for Google using Appwrite for a Next.js application. The solution is to check the initialization of the Appwrite project for OAuth.
mckoda09
3 Feb, 2024, 13:57

it shouldn't be a popup. when you are trying to create an oauth2 session, appwrite client sdk should redirect your user to google oauth2 page, then return him back to your app (by URL provided in success param)

Aisha_Agarwal
3 Feb, 2024, 13:59

Understood ..but it not redirecting to google oauth2 page

Aisha_Agarwal
3 Feb, 2024, 13:59

it is directly rediecting to home page url ...without asking to select account for loggiing in and all

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more