0
votes

I am trying to use AD FS as Identity provider with react-native-azure-auth library.

It works fine with iOS, redirects and returns token back from the login screen. However in case of Android, after redirecting from the Login screen it returns error "TypeError: Network request failed]".

I tried to catch exceptions in react-native-azure-auth/src/webauth/index.js in the following code

  const tokenResponse = await client.exchange({
       code,
       scope: scope.toString(),
       code_verifier: verifier
   })

Exception caught "TypeError: Network request failed]"