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

Additional Methods to `useAuth`

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Realm React

      Problem

      There are a few methods that could be wrapped in useAuth, including:

      • linkUser
      • deleteUser
      • removeUser

      There are not necessarily Auth operations, but they are related to the user session and will in effect affect authorization.

      Solution

      Extend useAuth and documentation to include these operations.

      Alternatives

      Unable to find source-code formatter for language: tsx. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      const app = useApp();
      const user = useUser();
      
      app.linkUser(...);
      app.deleteUser(user);
      app.removeUser(user);
      

      How important is this improvement for you?

      Would be a major improvement

      Feature would mainly be used with

      Atlas App Services: Auth or Functions etc

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.meyer@mongodb.com Andrew Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: