A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
MIT License
344
stars
94
forks
source link
getAccessToken is refreshing page on mobile safari (non-inkognito mode) #245
Describe the bug
After the redirect from AAD-B2C login page the react code is calling the backend and therefore requesting the accessToken with getAccessToken(). The hole website is refreshing once. In older msal and react-aad-msal versions there was an infinite loop. I am using the auth.html file in the public folder. Important to notice is that this is just happening on the mobile safari non-inkognito modus. When I am using chrome or edge on my mobile or desktop everything is fine even with older library versions. Even the inkognito mode of the mobile safari is working without any refresh. I deleted the cookies and so several times.
Expected behavior
Silent call of the auth.html and no refresh in safari.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Desktop (please complete the following information):
OS: iOS
Browser: safari
Version [e.g. 22]
Smartphone (please complete the following information):
Library versions
react-aad-msal
: 1.3.2msal
: 2.3.5 and tested with other versionsDescribe the bug After the redirect from AAD-B2C login page the react code is calling the backend and therefore requesting the accessToken with getAccessToken(). The hole website is refreshing once. In older msal and react-aad-msal versions there was an infinite loop. I am using the auth.html file in the public folder. Important to notice is that this is just happening on the mobile safari non-inkognito modus. When I am using chrome or edge on my mobile or desktop everything is fine even with older library versions. Even the inkognito mode of the mobile safari is working without any refresh. I deleted the cookies and so several times.
Expected behavior Silent call of the auth.html and no refresh in safari.
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Smartphone (please complete the following information):