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

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?
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!
Most helpful comment
There's a method for this:
clearStaleState