Auth0 Login Issue on Android (React Native Expo)

Hello everyone,

I have set up Auth0 by following the official documentation, and everything works flawlessly on iOS—users can log in and log out without any issues, and the entire redirect flow functions as expected.

However, on Android, despite having all callback and logout URLs configured correctly, when users tap the login button and enter their email and password, the screen loads for a while, then Auth0 redirects to a blank white page without returning to my app.

Similarly, when attempting to log in with Google, the email selection screen appears, but after choosing an email, the process gets stuck in an infinite loading state.

For reference, I’m using React Native with Expo.

Has anyone encountered a similar issue or found a solution? Any help would be greatly appreciated!

Hi @ozan.kesici,

Welcome to the Auth0 Community !

So from the description of your case, the issue is related to the callback of your infrastructure. Related to the android SDK, the reason could be that mobile browsers tend to block redirects when using an https scheme. That is why any custom scheme that is not http or https should work, ideally a custom scheme. More details, including sample codes are provided by this Knowledge Article, and if you encounter other issues implementing this, then this KB Article about React Native on the matter should come in handy.

A very similar issue was resolved recently in this github thread, especially if you are using a custom domain, so i would definitely recommend checking it out.

I hope this helps yout use case.
Best regards,
Remus