Auth0 Home Blog Docs

WebView Sign on to FE React App Flow

Hi everyone,

We are setting up a webview mobile app for our main application. Google doesn’t allow sign on through webview, so we are using a kind of unique approach and are open to any suggestions of how to do it better.

The process is as follows:
User opens app on phone ->
App prompts user to login using Auth0 ->
Credentials received from login ->
Webview redirects to FE React App with hash as access token, etc. ->
React App should be able to auth0.parseHash and give user access

Unfortunately, it breaks down at the last part. The error we receive is that the state does not match. I have been trying to figure it out for a little bit with no luck.

Could anybody provide some kind of insight for this?