Skip to content
Back

Google OAuth2 is not working

  • 0
  • 1
  • 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
Google OAuth2 was not working due to a typo in the environment variable, but the issue has been resolved.
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?

29 Jan, 2026, 18:19

Hi its working now. I made a typo in the env variable. Thanks for ur support. Ur provided link is really helpful.

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