Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-871

Credentials(…) creation for Google require a server auth code, but parameter is named googleToken

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In the iOS SDK, the Credentials class (a.k.a. RLMCredentials) can be created for the Google provider with the call

      Credentials(googleToken: …)
      

      (or a similar callRLMCredentials(cm)credentialsWithGoogleToken in Objective-C).

      The call, however, doesn't work with any of the tokens returned by Google, but requires the serverAuthCode from the user instead (that's obtained by specifying both a clientId and a serverClientId in the Google Sign In configuration).

      This proves to be confusing for the developer: it would be better to rename the method to make clear what's expected.

      References:

      https://mongodb.slack.com/archives/CL9JSLTGE/p1598518484019500

      https://mongodb.slack.com/archives/C41SX3C4D/p1600782846032700

            Assignee:
            eric.mossman@mongodb.com Eric Mossman (Inactive)
            Reporter:
            paolo.manna@mongodb.com Paolo Manna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: