alexandrtovmach / react-microsoft-login

Microsoft services authorization with React.
https://alexandrtovmach.github.io/react-microsoft-login
MIT License
80 stars 38 forks source link

While sign up it is causing double token api call #123

Open pc2404 opened 8 months ago

pc2404 commented 8 months ago

In react application
`<MicrosoftLogin clientId={appConfigData.MICROSOFT_CLIENT_ID} authCallback={handleMicrosoftLoginSuccess} tenantUrl={appConfigData.MICROSOFT_TENANT_URL} redirectUri={appConfigData.APPLE_REDIRECT_URI} withUserData={true} prompt='consent'

{t('microsoft')}

`

this is the configuration provided and while signing up it is causing the double token API call causing double authentication call.

Screenshot 2024-02-19 at 5 16 25 PM

Could you tell how can we resolve that.

lgrimm6 commented 2 months ago

I had the same problem when using version 2.0.1, I downgraded to version 1.12.1 and it worked fine, I just need to enable id_token in the application authentication section in Microsoft Entra ( Azure )

patilniranjan7 commented 2 months ago

Please check that the version will have a login Issue, on mob maybe it will not work.