How do I use iCloud to authenticate with Realm object server?
I know I have to call login
with the "iCloud token" but not being able to find how to get this token.
So far what I could find is this: FileManager.default.ubiquityIdentityToken
which according to docs "contains an opaque object representing the identity of the current user". That doesn't seem to work.
Also, what is the normal workflow to use iCloud as authentication, do I show a button for this next to credentials/Facebook/Twitter login? It feels a bit weird since iOS users normally don't have to login to iCloud. Or do I login with iCloud by default and if the user logs in with another provider I logout from iCloud? That workflow feels also weird.
Thanks