vmurin / react-native-azure-auth

React Native library implementing Azure AD OAuth2 API
MIT License
85 stars 64 forks source link

android stuck on "continue", does nothing #216

Open jliukai opened 2 months ago

jliukai commented 2 months ago

Problem

When I attempt to sign in, and press "continue" it does nothing.

tBUI3

Setup

const azureAuth = new AzureAuth({ clientId: Config.MICROSOFT_CLIENT_ID, redirectUri: Config.MICROSOFT_REDIRECT_URI_ANDROID })

const tokens = await azureAuth.webAuth.authorize({ scope: 'email openid profile User.Read offline_access', prompt: 'select_account' }) console.log('tokens') // <--- never gets to here

vmurin commented 2 months ago

Please check the issue #27 and give your feedback here 🙏🏻

qwert251102 commented 1 month ago

same @vmurin issue for me i have checked https://github.com/vmurin/react-native-azure-auth/issues/27 here is the intent filter`

       <category android:name="android.intent.category.DEFAULT" />
       <category android:name="android.intent.category.BROWSABLE" />
       <data
          android:scheme="msauth"
          android:host="package-name"
          android:pathPrefix="/signature-hash"
         />
   </intent-filter>` in place of package-name i have used my real package name 

in place of signature-hash i have used my signature-hash