我目前正在创建一个简单的应用程序,其目的是:
- 通过GoogleSignInSDK登录Google,然后从Google获取
token
,并将其用于io.realm.mongodb.Credentials.google(token)
。 - 但我总是
E/SignInActivity: AUTH_ERROR(realm::app::ServiceError:47): error exchanging access code with OAuth2 provider
收到错误.
我试过了:
- 遵循了 https://docs.mongodb.com/realm/authentication/google/#set-up-a-project-in-the-google-api-console 的不明确的指导方针。
- 当我在 Google Cloud Platform Console 上声明应用
Android
时,我找不到我的Client Secret
。 - 当我在 Google Cloud Platform Console 上声明该应用程序
Android
时,我发现了Client Secret
和Client ID
。 - 什么都没用。
[realm.mongodb.com 上的错误][1][1]:https://i.stack.imgur.com/Esgi5.png
非常感谢您阅读本文, 我无可救药地等待任何有相同问题解决方案的人。
陈清仲
我也遇到了这个错误,似乎开发人员将其视为已知问题。
https://github.com/realm/realm-js/issues/3116