Ask Your Question
4

What is the meaning of the error message "Unhandled Promise Rejection: Error: No matching state found in storage" that appears when using oidc-react and oidc-client-ts on a MacBookPro M1?

asked 2023-02-17 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-11-21 08:00:00 +0000

david gravatar image

The error message "Unhandled Promise Rejection: Error: No matching state found in storage" can occur when using oidc-react and oidc-client-ts on a MacBookPro M1 due to a mismatch between the state value that is present in the authentication request and the state value that is stored in the storage mechanism (such as cookies or local storage). This can happen if the browser cookies or other storage mechanisms are not properly configured or if there is an issue with the implementation of the storage mechanism.

To fix this issue, you may need to ensure that the storage mechanism is properly configured and make sure that the state value is correctly stored and retrieved. You may also need to verify that the client ID and redirect URI values are correct and that the authentication request is properly formed. Additionally, you may need to update the versions of oidc-react and oidc-client-ts, or try using a different browser or machine to see if the issue persists.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-02-17 11:00:00 +0000

Seen: 10 times

Last updated: Nov 21 '22