MSAL-Browser 2.0.1: Incorrectly deserializes URL Hash resulting In 'platformStateObj is null' exception #2118
Closed
3 of 13 tasks
Labels
bug
A problem that needs to be fixed for the feature to function as intended.
msal-browser
Related to msal-browser package
Library
msal@1.x.x
or@azure/msal@1.x.x
@azure/msal-browser@2.0.1
@azure/msal-angular@0.x.x
@azure/msal-angular@1.x.x
@azure/msal-angularjs@1.x.x
Important: Please fill in your exact version number above, e.g.
msal@1.1.3
.Framework
TypeScript / React / Material UI
Description
MSAL redirects to AD B2C fine which returns back to the app as expected. However, MSAL is not processing the url hash properly. The problem seems to lie within this method:
particularly, these two lines:
The first line successfully deserializes the hash into this serverParams object:
However, the next line fails since
serverParams.state
isundefined
. As you can see in the above screenshot, the object key is actually#state
.Error Message
Security
Regression
Version:
MSAL Configuration
Reproduction steps
Expected behavior
User is logged in without error.
Browsers/Environment
The text was updated successfully, but these errors were encountered: