世博认证谷歌在模拟器上工作完美,但在手机和独立应用程序上的世博去应用程序上不起作用

Abd*_*had 5 google-authentication react-native expo expo-go

在独立应用程序上它显示了 You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure这一点并且没有发生任何事情。但在模拟器中一切正常。

我的代码

import * as GoogleSignIn  from 'expo-auth-session/providers/google';

WebBrowser.maybeCompleteAuthSession();

    const [request, response, promptAsync] = GoogleSignIn .useAuthRequest({
       expoClientId: 'id',
       androidClientId: 'id', 
    });
  
    useEffect(() => {
      if (response?.type === 'success') {
        const { authentication } = response;
        }
    }, [response]);
Run Code Online (Sandbox Code Playgroud)