在realm文档中提供了以下代码。
GoogleSignin.configure({
webClientId: clientId,
offlineAccess: true,
});
async function getGoogleAuthCode() {
try {
await GoogleSignin.hasPlayServices();
const {serverAuthCode} = await GoogleSignin.signIn();
return serverAuthCode;
}
catch (error) {}上面的代码总是返回10 - DEVELOPER_ERROR,
交叉检查了客户id。由于mongodb realm建议使用web应用程序类型google oAuth。App的SHA未在google端注册。
发布于 2020-09-18 01:21:47
谷歌登录在当前的测试版中被破坏了。
参考文献:
https://stackoverflow.com/questions/63799160
复制相似问题