realm / realm-tasks

To Do app built with Realm, inspired by Clear for iOS
Other
368 stars 73 forks source link

How to clean/delete all users in Android #406

Closed ojarabo closed 7 years ago

ojarabo commented 7 years ago

Hi all, I am building my auth activity following your realm-tasks demo/tutorial. I have reused most of your code, but changing several things related to the design.

Email Auth works perfectly. However, with Facebook, I am having some issues. First, I signed up using Facebook and it worked perfectly. Later on, I logged out, and tried to login again using Facebook. However, even though that is connecting to Facebook correctly (I see the LoginButtun with the text log out), Facebook detected that you have already registered the user in its Auth system. Therefore, the SyncUser callback register a problem and instead of calling onSuccess, it calls onError.

I am not really sure if this is a bug, or if this is something related to a modification I included related to this issue.

For that reason, I would like to clean all the users from the Realm Auth, including google and facebook accounts. How can I do it?