I don't know if this is a bug or i have configured something wrong somewhere.
I can see that localstorage is filling up with entries like this
Key: oidc.
Value: {"id":"
and i cannot figure out why? They seem to never be deleted.
What are these used for?
The oidc.user: token i store in SessionStorage so i thought that is that storage that would be used for all related items?
This is the state for the protocol flow and it's not getting cleaned up because the protocol workflow is not getting completed. I guess you're doing a lot of testing? There's an API to clean them up automatically: https://github.com/IdentityModel/oidc-client-js/blob/dev/sample/public/user-manager-sample.js#L82
Yes I am doing a lot of testing, replacing oidc-manager with this one. :)
But i wonder if i am doing something else wrong too, as even for what i would expect to be the normal flow of Signing-in, navigate around for a bit and then Sign-out. These entries does not get cleaned up.
I am working in an Angular 1.4.x app so i could have configured something wrong somewhere. I have not been able to find any examples for full implicit flow for Angular 1.4.x.
Do you know of any examples?
I'd clear them all out and then complete one successful test to login and see if the localStorage entry remains. If so, then you're right -- something is not cleaning it up. You'd debug into this on the xxxCallback page.
Thanks @brockallen seems like something is wrong in my Callback page, i will debug and see what i find.
Closing. If you still have issues, feel free to reopen.
Hi @robbaman were you able to find what the issue was? I am using angular 1.5 and having exact issue.
When I log out they the oidc.
@john1452 in my logout script i run the clearStaleState() function, which removes the old entries.
@Robban1980 Thanks a lot! it works
Most helpful comment
@john1452 in my logout script i run the clearStaleState() function, which removes the old entries.