Firebase 如何使用Expo+;谷歌登录&x2B;火基认证

Firebase 如何使用Expo+;谷歌登录&x2B;火基认证,firebase,react-native,firebase-authentication,expo,google-signin,Firebase,React Native,Firebase Authentication,Expo,Google Signin,我发现这个话题有很多过时的答案,所以我正在做一个新的 我让Expo React Native项目和GoogleSignIn(从Expo导入)一起工作,并对用户进行身份验证 我还需要使用Firebase身份验证,所以当用户通过GoogleSignIn身份验证时,我也需要对Firebase进行身份验证: const result=wait GoogleSignIn.signInAsync(); const{idToken,accessToken}=result.user.auth; const cr

我发现这个话题有很多过时的答案,所以我正在做一个新的

我让Expo React Native项目和GoogleSignIn(从Expo导入)一起工作,并对用户进行身份验证

我还需要使用Firebase身份验证,所以当用户通过GoogleSignIn身份验证时,我也需要对Firebase进行身份验证:

const result=wait GoogleSignIn.signInAsync();
const{idToken,accessToken}=result.user.auth;
const credential=firebase.auth.GoogleAuthProvider.credential(idToken,accessToken);
const answer=wait firebase.auth().signiWithCredential(凭证)
(我从google auth获取结果,然后尝试在Firebase上对用户进行身份验证)

但在我登录后,我会出现以下错误:

firebase cred错误:[错误:无效Idp响应:访问\u令牌访问群体不适用于此项目]

Firebase似乎需要SHA1密钥,但在开发和使用应用程序时,Expo不会签署应用程序。那么如何让它工作呢