How to detect Realm app user has been deleted?

app.currentUser.delete deletes the Realm app user from the server side. However, it seems on other logged-in devices, and the data upload is still working with no auth error.

On other logged-in devices, re-launching the app would detect that the user has been deleted. I also tried to use isLoggedIn but for authenticated devices, it seems always stays “true”.

RealmApp.shared.currentUser?.isLoggedIn

How to detect Realm app user has been deleted on other existing logged-in devices?

1 Like