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

Credentials.anonymous(reuseExisting = true) not work

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Expected results

      <!-- What do you want to achieve? -->
      use the same anonymous user ID with every session

      Actual Results

      <!-- What happened instead? -->
      every time I log in with the anonymous user Realm generates a new user with a different ID so I can not trace the user

      Steps & Code to Reproduce

      <!-- What steps resulted in the unexpected behavior? -->
      <!-- Please show any relevant code or even better is a full sample project that can reproduce the problem -->
      var app by mutableStateOf( App.create("appid"))

      val anonymousCredentials = Credentials.anonymous(reuseExisting = true)
      user = app.login(anonymousCredentials)
      println("userId"+user!!.id)

      Core version

      Core version: ?
      Realm Core 14.6.1
      Realm kotlin 1.16.0

            Assignee:
            daniel.tabacaru@mongodb.com Daniel Tabacaru
            Reporter:
            unitosyncbot Unito Sync Bot
            AD Sync Client
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: