syncweek-react-aad / react-aad

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

Open sebastianspross opened 4 years ago

sebastianspross commented 4 years ago

Library 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):

Smartphone (please complete the following information):

GraemeF commented 4 years ago

Should be resolved by #238