react-microsoft-login icon indicating copy to clipboard operation
react-microsoft-login copied to clipboard

While sign up it is causing double token api call

Open pc2404 opened this issue 1 year ago • 3 comments

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' > <MicrosoftLoginButton type="button" fontWeight="bold"> <span className="relative left-[5px]"> <LoginButtonImage src={MicrosoftIcon} alt="Microsoft Login" /> </span> <span className="relative left-[20px]"> {t('microsoft')} </span> </MicrosoftLoginButton> </MicrosoftLogin>

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.

pc2404 avatar Feb 19 '24 11:02 pc2404

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 )

lgrimm6 avatar Jul 19 '24 20:07 lgrimm6

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

patilniranjan7 avatar Aug 14 '24 07:08 patilniranjan7

I have the same problem with double calls to the authentication API in version 2.0.1, I tried it in other versions and it works correctly in version 1.15.0.

image

bramireza avatar Jan 13 '25 21:01 bramireza