Oidc-client-js: What should I be doing to clean up localStorage?

Created on 26 Sep 2016  路  5Comments  路  Source: IdentityModel/oidc-client-js

I just started looking into using localStorage for something in my application when I noticed this:

image

Every single key in there is oidc.[somehash] - am I doing something improperly, or is there some explicit way for me to make sure this is being cleaned up after signing in?

question

Most helpful comment

There's a method for this: clearStaleState

All 5 comments

For more detail, I should note that I am using the UserManager class to handle my integration with identity server 4.

There's a method for this: clearStaleState

Would it be appropriate to do this after the signin redirect is handled (in signinRedirectCallback)?

I'd just throw this somewhere in the page initialization. It's async.

Done, thanks!

Was this page helpful?
0 / 5 - 0 ratings