react-aad
react-aad copied to clipboard
getAccessToken is refreshing page on mobile safari (non-inkognito mode)
Library versions
react-aad-msal: 1.3.2msal: 2.3.5 and tested with other versions
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):
- Device: iPhone 11 Pro
- OS: 13.5
- Browser safari
- Version [e.g. 22]
Should be resolved by #238