Google Authentication for embedded Web View 403: disallowed_useragent

0

I have built this react native wrapper to load a web app. The web app is integrated with google login. But when the web app is loaded via the react native web app it says error 403 : disallowed_useragent.

return (
    <WebView
      ref={webviewRef}
      startInLoadingState={true}
      style={{
        marginTop: Platform.OS == "ios" ? 45 : 20,
        backgroundColor: "#00308F",
        flex: 1,
      }}
      onNavigationStateChange={handleWebViewNavigationStateChange}
      source={{
         uri: URL
        //uri:
        //   Platform.OS == "android"
        //     ? URL_AND
        //     : URL_IOS,
      }}
      originWhitelist={["https://*", "http://*"]}
      allowFileAccess={true}
      setSupportMultipleWindows={true}
    />
  );
};