Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-661

Allow anonymous users to be logged in without reusing existing ones

      The anonymous credentials are very useful for writing integration tests and it would be very helpful to have the option to tell the SDK not to return an existing user when logging in anonymously. From an end-user perspective, the experience I would like to see is:

      app.logIn(Credentials.anonymous()) // returns an existing user or a new one if called for the first time
      app.logIn(Credentials.anonymous({ reuseUser: false }) // always logs in a new user
      app.logIn(Credentials.anonymous({ reuseUser: true }) // equivalent to Credentials.anonymous()
      

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: