Realm iOS SDK user identities missing

After successfully logging a user in or signing a user up the identities property on the user object contains the appropriate user identities e.g ["oauth2-apple"] however the persisted user object that is loaded when calling app.currentUser() when the app is restarted always contains an empty identities array, regardless of which provider was used to authenticate the user. Is this the intended behaviour? it makes it very difficult to determine if a user is logged in anonymously or with another provider. Are we supposed to record this info ourselves in the custom data document?

@Theo_Miles This sounds like an issue - we should be preserving the identities array - can you file an issue here GitHub - realm/realm-swift: Realm is a mobile database: a replacement for Core Data & SQLite

A reproduction case would be helpful

Thanks, will create an issue there.

Update: Github issue is being tracked here, this is indeed a bug user.identities property is not persisted between app restarts. · Issue #6647 · realm/realm-swift · GitHub

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.