schibsted / account-sdk-browser

Schibsted Account SDK for browsers
https://schibsted.github.io/account-sdk-browser/
MIT License
16 stars 11 forks source link

Public api to bypass hasSession cache #87

Closed erikfried closed 4 years ago

erikfried commented 6 years ago

We have use cases where we want to bypass the hasSession cache. We know the cache is cleared when using the Account.login() method.

If we do one of the above and user returns to www.aftonbladet.se a stale state is still cached. We can detect this, but are then forced to either do localStorage.removeItem('hasSession-cache') or temporarily set identity. _enableSessionCaching = false.

None of those are good options, operating with SDK internals.

torarvid commented 6 years ago

Hi. I see your point. Now that all sites started using v3 of the sdk at the same time, and also iOS 12 (with ITP2) was released, we’re drowning in support at the moment, so I think I have to say “it’s gonna be a few days until I can get to this”.. Hope you understand and can work around it with internals in the mean time