I believe the documentation here that gives example code of Google One Tap flow has an error.
The code example has:
const credentials = Realm.Credentials.google({ id_token: response.credential });
Whereas the property should be idToken
not id_token
.
This is correct in the Node SDK documentation.
This took me ages to solve, so hopefully this helps someone else. I couldn’t see else how to notify MongoDB about this, since I don’t have a paid support plan so no way of contacting them directly.