-
Type: Bug
-
Resolution: Fixed
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: None
-
SDK FY21-Q3.
-
3236
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