-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
6797
-
SDK FY21-Q3.
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