blockstack-android icon indicating copy to clipboard operation
blockstack-android copied to clipboard

isUserSignedIn caches the userSession from shared preferences

Open friedger opened this issue 7 years ago • 1 comments

The default implementation of BlockstackSession uses SessionStore backed by the default shared preferences.

If two BlockstackSession exists backed by the same preferences and the user is logged out in one session then the second does not reflect that.

friedger avatar Dec 01 '18 21:12 friedger

A workaround is to use a single instance of SessionStore that is used in both BlockstackSessions.

This needs to be documented or the default SessionStore should not cache the state of the preferences.

friedger avatar Dec 04 '18 10:12 friedger