Android SharePoint mobile app - localStorage is reused when switching accounts

Occasional Contributor



I've verified that when you switch accounts, the localStorage is reused. I have a simple SPFx component on a SP page that uses localStorage. It shows cached data from the previous user after switching accounts. The expected behaviour would be that there is a localStorage for each account you log in for.


For example, on the desktop Chrome browser, you will have the same localStorage data available for a site if you login with different web logins, but once you switch to a different persona or Google account, the localStorage points to a different folder on your device, effectively keeping the localStorage separated for multiple accounts.


To me, it seems that switching accounts on the SharePoint mobile app should also make sure you are not reusing the other account's localStorage...


Any thoughts on this?


0 Replies