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?
5 Replies
Hello @Marcellino, please still share the error you get either from the browser and from twenty-server container logs
Pleae double check that your env variable are correctly configured in your twenty-server container by running
env | grep GOOGLE
If they're not you missed something in your configuration, double check your .env and docker-compose.ymlim not using docker and unfortunatly i dont receive any errors that could help me to debug
it seems like redirect after login is broken and redirect me to 404 without complete login process
Please still double check your env variable status by logging your env variable from your twenty-server
Looks like a misconfiguration in your redirect uri
ina few minutes i will try and i'll let you know. Thx
after some debugging now i get another error, login redirect me to this path
https://mydomain/verify?errorMessage=User+does+not+have+access+to+this+workspace
Please flush your cache
yarn command:prod cache:flush
in your twenty-server container