IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 840 forks source link

login_required getting when login again. #1216

Closed mvmujeeb closed 3 years ago

mvmujeeb commented 4 years ago

We are doing slightly different from existing pattern...

We are using silentSignin for first authentication and then we are consuming id_token in our application because we only need need token for further, we are not explicitly calling signOut. when user try to login again and authenticate I am getting login_required in redirect callback.

I tried to debug, finally i could see that there is one user object in sessionStorage it is not cleared. if I am manually clear then next time login is succeeding.

not that that I tried to clearStaleState() with shorter age but no use at all,

is there any method to clear entry in session storage than manually or by script?

Capture
brockallen commented 3 years ago

Not sure, sorry.