Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-803

Realm.login() will not run again after refreshing React Native app

      Goals

      Be able to successfully call Realm.login() again after refreshing app.

      Expected Results

      Login should run and return the user information like the first time the app loads

      Actual Results

      Nothing happens, no errors shown in the console. Realm logs don't show the request is being made.

      When I fire up the React Native Debugger, I did see an error about Realm.Credentials.function(payload); not being able to be created. I believe some of the functionality for function auth is missing in the lib/browser/credentials.js and lib/browser/rpc.js. We are using function auth, however, I received the same behavior of the original issue using anonymous and other auth types.

      Steps to Reproduce

      Launch app from Xcode in simulator or on iOS device.

      Run Login (works beautifully).
      Refresh the react native bundle from the package server.
      Try to login again (nothing happens)

      Version of Realm and Tooling

      • Realm JS SDK Version: 10.0.0-beta.12
      • Node or React Native: React Native 0.62.2
      • Client OS & Version: iOS
      • Which debugger for React Native: Chrome

            Assignee:
            lubo.blagoev@mongodb.com Lubo Blagoev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: