anhtuan159
anhtuan1592w ago

Error when login with google

I'm using Login V2 and the TypeScript template for the custom login page. Logging in with email and password works correctly. The issue occurs when I try to log in with a Google account. After selecting the Google account and successfully logging in, I'm redirected to the/idp/google/success page, which shows a successful login message. However, immediately after that, I'm redirected again to accounts.google.com/o/oauth2/v2/auth/oauthchooseaccoun to choose a Google account. This creates an infinite loop. Could someone please help me resolve this issue? Thank you all very much in advance!
1 Reply
Rajat Singh
Rajat Singh2w ago
hey @anhtuan159 can you pls verify that your application correctly routes and processes the /idps/callback endpoint. Ensure that this route is accessible. also maybe if you have not already, pls give this a read https://zitadel.com/docs/guides/integrate/login-ui/external-login#flow

Did you find this page helpful?