- My goal:
Authenticate users via OAuth (Zitadel OIDC) in our Retool Mobile app on Urovo DT50 Android warehouse scanners. - Issue:
OAuth callback tooauth.retool.com/oauth/user/oauthcallbackfails with "CSRF DETECTED" error - but ONLY on Android Retool Mobile app.
Works: iPhone Retool Mobile app
Works: DT50 browser (web app)
Fails: DT50 Retool Mobile app → CSRF error - Steps I've taken to troubleshoot:
- Enabled refresh tokens in Zitadel OAuth client
- Tested multiple browsers (Chrome, Firefox, incognito) - same issue
- Cleared app cache and data
- Verified Android System WebView is up to date
- Checked App Links verification - found only
retool.comis verified, NOToauth.retool.com
- Additional info:
- Cloud (Retool Cloud)
- Android 13 on Urovo DT50 scanner
- Zitadel OIDC authentication
- Retool Mobile latest version
Hypothesis:oauth.retool.comis not registered as a verified Android App Link, so the OAuth callback doesn't redirect back to the Retool Mobile app correctly on Android.
Is there a way to getoauth.retool.comadded as a verified Android App Link?