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

Google token string depreciated please use auth code object

      How frequently does the bug occur?

      All the time

      Description

      Uncaught (in promise) Error: google(<tokenString>) has been deprecated. Please use google(<authCodeObject>).
      I have received this error. All tough I was following the original docs both for google one tap connect and realm. Did some digging and found that this error shows when creating realm credential for google. I am using the realm web sdk with react. This error is generating from bundle.dom.es.js }}at line 2386 in method {{derivePayload. If there is any solution or some has faced this issue before it will be grate if you can share the solution. The same issue can be recreated by using the code provided in the realm web sdk google authentication code sample.

      https://www.mongodb.com/docs/realm/web/authenticate/#std-label-web-google-onetap

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Yes, always

      Reproduction Steps

      No response

      Version

      2.0.0

      What SDK flavour are you using?

      Atlas App Services (auth, functions, etc.)

      Are you using encryption?

      No, not using encryption

      Platform OS and version(s)

      Mac

      Build environment

      React

      Cocoapods version

      No response

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

              Created:
              Updated: