Graph API nothing happens after I click continue on Authentication flow on react native app
hashir
5
Reputation points
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)
}
}
Sign in to answer