Skip to content
Back

Google OAuth2 is not working

  • 0
  • Web
trung 186569918
29 Jan, 2026, 17:11

the Google OAuth2 is working perfectly in localhost, but when I bring it to production that means real domain, then when I clicked button signin nothing happened, no error pop up.

More context, Im using this function to redirect to gg login, account?.createOAuth2Session(OAuthProvider.Google, success, failure); but it just passed through and nothing change in the website. Please help me, thanks in advance

TL;DR
Developers are facing an issue with Google OAuth2 not working on production, despite working fine on localhost. The redirect to Google login is not happening on the live domain when clicking the sign-in button. A suggested solution is to check the logs and ensure the OAuth2 configuration is correct. The provided link offers guidance on fixing OAuth2 issues in Appwrite Cloud.
trung 186569918
29 Jan, 2026, 17:40

switched to use Oauthtoken, but the errors 's still there, clicking siging button and nothing happen 🙁

trung 186569918
29 Jan, 2026, 17:41

im expecting to redirect to google login, but not working. Local 's workiing well

Axistro
29 Jan, 2026, 17:56

Could you provide an video recording if possible And check the logs of what is happening?

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