AuthError: Unexpected error in authentication.: Hash does not contain state
See original GitHub issueLibrary versions
react-aad-msal
: ^2.3.5msal
: "^1.3.0
Describe the bug
Using Azure B2C.
I’m using a custom policy - invitation sample located here:
When redirecting to the app from the invitation registration screen the following browser error message is displayed: AuthError: Unexpected error in authentication.: Hash does not contain state
Expected behavior To redirect to a SPA application using react-aad-msal
Desktop (please complete the following information):
- OS: Windows 10 Pro
- Browser Chrome
- Version 81
Configuration
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
AuthError: Unexpected error in authentication.: Hash does not ...
now calling new UserAgentApplication(config) will error with the message: AuthError: Unexpected error in authentication.: Hash does not contain ...
Read more >azure ad b2c - Error in Angular MSAL AuthError: Unexpected ...
ERROR AuthError : Unexpected error in authentication.: Hash does not contain state. My b2C config looks exactly like this in sample. Any ...
Read more >Hash does not contain state - Blazor Forums
Blazor MSAL Auntentication library error “Unexpected error in authentication.: Hash does not contain state”. Posted 2 years ago by preetiislur.
Read more >BrowserAuthError | microsoft-authentication-libraries-for-js
Creates an error thrown when the state value in the hash does not match the interaction type of the API attempting to consume...
Read more >Configure third party OAuth IdP authentication - Microsoft Learn
In this article, learn Teams authentication tabs Microsoft Azure AD, ... else { // Unexpected condition: hash does not contain error or ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@michalk93 Have you been using it through the react-aad package? Seems it’s referencing an older version https://github.com/syncweek-react-aad/react-aad/blob/5015337ef1eaa6d29822b207ddd2efeedc28caef/packages/react-aad-msal/package.json#L80
@stephenstroud you’ re right. I’m using react-aad package. That’s probably the problem. Thanks for this notice!