react-aad icon indicating copy to clipboard operation
react-aad copied to clipboard

getAccessToken is refreshing page on mobile safari (non-inkognito mode)

Open sebastianspross opened this issue 5 years ago • 1 comments
trafficstars

Library versions

  • react-aad-msal: 1.3.2
  • msal: 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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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]

sebastianspross avatar Jun 24 '20 10:06 sebastianspross

Should be resolved by #238

GraemeF avatar Sep 15 '20 07:09 GraemeF