Graph API nothing happens after I click continue on Authentication flow on react native app

hashir 5 Reputation points
2023-08-15T01:35:31.16+00:00

I am implementing Graph API in my react native app, this is my code below for authentication. I tried different redirect URI including my own custom URI and URI from azure portal. when I go to sign in page I log in and then it asks for confirmation to continue with the unverified app when I click continue, nothing happens, how do I get it to login or get back to my app from webview. I tried searching a lot but could not get anything. I am using graph api for excel sheets

const config = {
      clientId: CLIENT_ID,
      scopes: appScopes,
      redirectUrl: "msauth://com.inspectcollect/Xo8WBi6jzSxKDVR4drqm84yr9iU%3D",
      additionalParameters: {prompt: 'select_account'},
      clientAuthMethod: 'basic',
      dangerouslyAllowInsecureHttpRequests: true,
      serviceConfiguration: {
            authorizationEndpoint:
              'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
            tokenEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
          },
        };
  
      
      // Initiate the authentication flow
     const t = async () =>{
      try{
      const result = await authorize(config);
      console.log(result.accessToken)
      } catch(e){
        console.log(e)
      }
      }
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
8,671 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,517 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.