I am currently creating a simple app with the purposes are:
- Sign In with Google through GoogleSignInSDK then get the
tokenfrom google, and use that forio.realm.mongodb.Credentials.google(token). - But I always get the error
E/SignInActivity: AUTH_ERROR(realm::app::ServiceError:47): error exchanging access code with OAuth2 provider.
I tried:
- Followed unclear guidelines from https://docs.mongodb.com/realm/authentication/google/#set-up-a-project-in-the-google-api-console.
- I cannot found my
Client Secretwhen I declare the app isAndroidon Google Cloud Platform Console. - I found
Client SecretandClient IDwhen I declare the app isAndroidon Google Cloud Platform Console. - Nothing works.
[Error on realm.mongodb.com][1][1]: https://i.stack.imgur.com/Esgi5.png
Thanks so much for reading this, I hopelessly waiting for anyone who has a solution for the same problems.
Tran Thanh Trong