FormidableLabs / react-native-app-auth

React native bridge for AppAuth - an SDK for communicating with OAuth2 providers

Home Page:https://commerce.nearform.com/open-source/react-native-app-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When executes authorize function it get stuck after gets open in browser with no further procedure with no error and no response

RitulPatil opened this issue · comments

Getting stuck once open in web with no response

I have implemented as follows:
const config:any = {
issuer: '',
clientId: '
',
redirectUrl: '
*********',
scopes: ['openid'],
clientAuthMethod :'basic' ,

// iosPrefersEphemeralSession: true,
// androidTrustedWebActivity: true

};
and using it in function
const azureAdLogin = async () => {

try {
  const result = await authorize(config);
  console.log('azureAdLogin result=', result);
} catch (error: any) {
  console.log("error=", error);
}

}


Environment

experiencing the issue on: both react-native Version: 0.72.7
react-native-app-authVersion:7.1.0`

+1

+1

Did you find any solution?

My issue was in the backend, I don't know tho what the backend guys did to fix, I am just assuming the redirect urls were not right

+1

Thanks for the issue report, we are going to need some additional details in order to help out. Do you have any specific debugging information you can provide?

+1
For me everything works fine when logging in for the first time, but the browser freezes when "authorize" is triggered upon reconnection without kill the application.
My issue is only on iOS and since my upgrade of RN 0.71 to 0.73
RN: 0.73.6
react-native-app-auth: 7.1.0