Open orlahowell opened 4 years ago
I see this error too when third party cookies are blocked. I noticed an issue has already been filed for the underlying MSAL library:
https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/1880
I hit this using Google Incognito
Happens when the third party cookies are blocked
Should be resolved by #238
Library versions
react-aad-msal
: 2.3.5msal
: 1.3.2Describe the bug When third party cookies are blocked, I receive an error when using getAccessToken:
"TypeError: Cannot read property 'tokenType' of undefined at new AccessTokenResponse (AccessTokenResponse.js:42) at _callee2$ (MsalAuthProvider.js:373) at tryCatch (runtime.js:45) at Generator.invoke [as _invoke] (runtime.js:265) at Generator.prototype. [as next] (runtime.js:98)
at asyncGeneratorStep (MsalAuthProvider.js:72)
at _next (MsalAuthProvider.js:94)"
Expected behavior I would expect that acquireTokenSilent would run, return an error and then acquireTokenPopup or acquireTokenRedirect would run.
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):