Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid iCloud synchronization #68

Open
banduk opened this issue Feb 6, 2019 · 1 comment
Open

Avoid iCloud synchronization #68

banduk opened this issue Feb 6, 2019 · 1 comment

Comments

@banduk
Copy link

banduk commented Feb 6, 2019

I'm using mobx-persist with AsyncStorage in my react-native app.

When, in my new device, I recover from iCloud the gets exactly the same as in the previous device. The problem is that I want to force the user to login again.

Am I doing something wrong? Is there a simple solution for that?

@lxblink
Copy link

lxblink commented Feb 6, 2019

Not clear how exactly you are recovering the storage.
But in general, just remove your "logged in" flag or token from the storage/initial storage before passing it to hydrate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants