Sign out doesn't clear my data properly occasionally if sign in back fast enough.
Steps to reproduce
1) Sign in with your normal account and use the app.
2) Signout and immediatelly sign in with nsec which doesn't have metadata. This one is used in the video nsec16nksmlzruy2ccnmsrapmg29cjxkfcakhefpd3j4m4m0qv3unxpyshde2le
App is still showing old user as logged in. See 1st video.
Expected behavior
App should show the new user data without any traces of previous user.
Environment
iPhone XS.
Additional context
Maybe because I'm trying to login back very fast after logging out. If I restart the app and sign in with the mentioned nsec it works as expected. See 2nd video.
Logging in with an nsec which doesn't have profile metadata or any nostr event.
Describe the bug
Sign out doesn't clear my data properly occasionally if sign in back fast enough.
Steps to reproduce
1) Sign in with your normal account and use the app. 2) Signout and immediatelly sign in with nsec which doesn't have metadata. This one is used in the video
nsec16nksmlzruy2ccnmsrapmg29cjxkfcakhefpd3j4m4m0qv3unxpyshde2le
App is still showing old user as logged in. See 1st video.
Expected behavior
App should show the new user data without any traces of previous user.
Environment
iPhone XS.
Additional context
https://github.com/PrimalHQ/primal-ios-app/assets/1103119/18af7b82-df15-428d-a0e0-c67d10eba3b8
https://github.com/PrimalHQ/primal-ios-app/assets/1103119/7bab874b-c2dc-4b2f-b977-0c3599b6a4e3