TwentyT
Twenty7mo ago
11 replies
Marcellino

google auth issue

Hey everyone
We’re having trouble completing Google OAuth login on our app and could use some help.
After being redirected back to our app, the login fails and we get bounced without any specific error message. We suspect it might be due to misconfigured domains, redirect URIs or something in the .env.

Here's a snippet from our .env:

NODE_ENV=development
SERVER_URL=https://admin-yyy.xxx.xyz
FRONTEND_URL=https://yyy.xxx.xyz
GOOGLE_CLIENT_ID=xxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=xxx
GOOGLE_CALLBACK_URL=https://yyy.xxx.xyz/auth/google/redirect


Any idea what might be going wrong here?
Was this page helpful?