I am working on an iOS app developed with Swift. I managed to implement the
Sign in with Apple functionality and register a user with MongoDB Realm. Right after I call the login with the identityToken from Apple:
let credentials = Credentials.apple(idToken: "identityToken") app.login(credentials: credentials)
I get the RealmUser and can sync with the database in Atlas. However, the RealmUser instance won’t be logged in forever (which is expected behaviour I guess, even if I found a post online which suggested otherwise). So maybe I am missing something regarding that process but I don’t get the identityToken without showing the
Sign in with Apple button again.
So does anyone know what the Best Practise is regarding Logging in the user with
Sign in with Apple after registering successfully?