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)
| 归档时间: |
|
| 查看次数: |
803 次 |
| 最近记录: |