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
Prastoin
Prastoin2mo ago
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.yml
Marcellino
MarcellinoOP2mo ago
im 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
Prastoin
Prastoin2mo ago
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
Marcellino
MarcellinoOP2mo ago
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
Prastoin
Prastoin2mo ago
Please flush your cache yarn command:prod cache:flush in your twenty-server container

Did you find this page helpful?