AUTH_GOOGLE Error When Installing Version 0.50.0
When installing this new version, it is not possible to log in with Google for the first time as it always shows the error "Authentication failed." Creating an account using a regular email also fails, showing a message that you do not have permission in this workplace.

14 Replies
Hello
I assume you're self-hosting
I'm able to create an account and workspace on Twenty cloud
Have you correctly upgraded your twenty's version and workspaces ?
Please double check clearing your browser cache
Hello,
I have completely installed the latest version, v0.50.0.
1. When logging in via Google, I encounter the error "Authentication Failed". I have tried using different browsers and incognito mode, but I still cannot log in for the first time.
2. Subsequently, I disabled Google login and attempted to register/sign in using email. However, this was also unsuccessful. When creating an account via email, I receive an error message as shown in the attached image.

I have completely installed the latest version, v0.50.0.What step have you followed ? Is it a fresh install or an upgrade from an other version ?
@prastoin This is a fresh installation. I did not upgrade from any other version.
image: 'twentycrm/twenty:${TAG:-latest}'
Have you followed the docs on how to setup google authentication workflow and so on ?
- I have tried clearing the domain cache.
- Used incognito mode but still couldn't log in. (Note: This is the first login attempt after a completely fresh installation.) AUTH_GOOGLE_APIS_CALLBACK_URL=https://domain/auth/google-apis/get-access-token AUTH_GOOGLE_CALLBACK_URL=https://domain/auth/google/redirect AUTH_GOOGLE_CLIENT_ID= AUTH_GOOGLE_CLIENT_SECRET= AUTH_GOOGLE_ENABLED=true @prastoin In the previous version, this method still worked.
- Used incognito mode but still couldn't log in. (Note: This is the first login attempt after a completely fresh installation.) AUTH_GOOGLE_APIS_CALLBACK_URL=https://domain/auth/google-apis/get-access-token AUTH_GOOGLE_CALLBACK_URL=https://domain/auth/google/redirect AUTH_GOOGLE_CLIENT_ID= AUTH_GOOGLE_CLIENT_SECRET= AUTH_GOOGLE_ENABLED=true @prastoin In the previous version, this method still worked.
Interesting, about to attempt a reproduction in local
Are you using the one-click installation ?
@prastoin I installed Twenty on Coolify. When upgrading to the latest version, are there any issues related to Environment Variables that we should be aware of? Or does the Docker Compose file need any updates?
are there any issues related to Environment Variables that we should be aware ofNot aware of such new env variables, about to double check on our side
Or does the Docker Compose file need any updates?What do you mean ? Dockerfile indeed has been updated across latest versions
Is that what's shown in your twenty'servers logs ?
You can try that link in the application domain.twenty.com/auth/google-apis/get-access-token, and it works without errors. However, with the open-source installation, it returns an "Unknown error" in the browser, which seems to be an issue with the Google authentication link.
@prastoin I have deleted the volumes, and this case has been resolved. Thank you very much.
Well done
Enjoy coding !