bjerkio / oidc-react

React component to provide OpenID Connect and OAuth2 protocol support. 🌳
MIT License
327 stars 69 forks source link

Uncaught (in promise) Error: No matching state found in storage at OidcClient.readSigninResponseState (oidc-client-ts.js:1785:1) at async UserManager.signinCallback #1015

Open curiosDevInSearch opened 1 year ago

curiosDevInSearch commented 1 year ago

image

Uncaught (in promise) Error: No matching state found in storage at OidcClient.readSigninResponseState (oidc-client-ts.js:1785:1) at async UserManager.signinCallback

After I signed in and redirected back to my app I am getting that console error, need help to fix it

Sandbox-Freddy commented 1 year ago

I got the same error after sign in, is there a fix?

Ploppz commented 1 year ago

I see that there are similar issues in the past but these have been marked as fixed. I'm also experiencing this issue using version 3.2.2. Our IdP is Azure.

laughingwhale1 commented 8 months ago

Any update? @Ploppz did you solve the issue?

Ploppz commented 8 months ago

Well I started using oidc-client-ts but ... I'm still experiencing a "Error: No state in response" error, so maybe I'm just doing something wrong. In my case, the error doesn't seem to affect the application though. So I did not yet look further into this issue.

laughingwhale1 commented 8 months ago

Your error may mean the response code doesn't contain state= query param.

OlegTar commented 1 month ago

According to the source code there should be the SignInError handler. But it's absent when you install the npm package.

simenandre commented 3 weeks ago

Hey! We forgot to publish the SignInError handler, but that is done today! Hope that helps :)

OlegTar commented 2 weeks ago

@simenandre Thank you very much!