Preventing users to get 403 disallowed_useragent Google error

  • Which SDK this is regarding: react-native-auth0
  • SDK Version: 2.9.0 // react-native: 0.66.0
  • Platform Version: Android 11

Hello, I am getting a 403 disallowed_useragent error when some users try to authenticate using Google from my react-native app, using webAuth. As I searched, this is related to the browser app installed in the user device.

I can reproduce this issue using an Android 11 emulator disabling the Chrome browser, so the OS uses the WebView Browser Tester. If I let Chrome browser enabled, everything works OK.

So my question is: Is there a way to check if the browser installed in the user device supports Google Auth? So I can tell the user to update/install his browser if necessary.

Thanks!

Hi @jmpersichini,

As you have identified, this error arises because Google blocks login attempts from Webview/Embedded browsers. Unfortunately, this restriction is from Google and can’t be configured from the Auth0 side. Instead, you can configure your app to direct the user to use the system’s browser to complete the authentication.

These Community posts should help: