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

Realm Web: Various minor refactors

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Web

      After the beta launch of Realm Web, we have a few minor refactors that we want to complete:

      • [x] Align types between Realm JS and Realm Web
      • [x] Expose functions on the User.
      • [x] Move the serialize method from services into a transport to make the services more reusable between Realm JS and Realm Web.
      • [x] Remove the Remote prefix from the MongoDB Client classes.
      • [ ] Add the the missing credentials types to app.d.ts.
      • [x] Revisit and potentially align Remote MongoDB API with the Node.js driver.
      • [ ] Rename the existing logOut to logOutConfirmed and delete the access and refresh tokens only after session deletion has succeeded.
      • [ ] Create a new synchronous logOut which deletes access and refresh tokens and optimistically deletes the session (just console.warn-logging any errors).
        • Consider what happens when a different tab invalidates the session ...
      • [ ] Make the Credentials type argument default to any.

            Assignee:
            kraen.hansen@mongodb.com Kræn Hansen
            Reporter:
            kraen.hansen@mongodb.com Kræn Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: