Invalid Login State with Google
Feb 20, 2026
Overview
You may have pressed the back button
To reproduce this issue, follow these steps:
- Login using a Google account that has not consented to share information during the OAuth flow.
- On the Google OAuth consent page (throttle your internet connection to Slow 3G - this helps reproduce the next step). Click Continue to consent to sharing information with our app.
- While the callback (`https://<tenant_domain>/login/callback?...`) is in flight, click Continue again. This triggers another request to Google and results in another callback with a different auth code.
Applies To
- Google Connection
- Authentication
Cause
Solution
- A workaround is to set a custom error page and handle it there by checking the query string parameters appended to the URL.
- At this point, a redirection can be issued back to the app to start the login flow again.