为什么我的实际设备上的开发版本由于未知原因而导致苹果身份验证失败?

问题描述 投票:0回答:1

要在我的博览会应用程序上设置我的苹果身份验证,我已按照以下步骤操作:

  1. 已安装
    expo-apple-authentication
  2. 在我的 app.json 中添加了这些行:
    "plugins": [
      "expo-router",
      "expo-apple-authentication",
    "ios": {
      "usesAppleSignIn": true,
  1. 在我的代码中我使用这个按钮:
         <AppleAuthentication.AppleAuthenticationButton
           onPress={async () => {
             try {
               const credential = await AppleAuthentication.signInAsync({
                 requestedScopes: [
                   AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
                   AppleAuthentication.AppleAuthenticationScope.EMAIL,
                 ],
               });

当我按下此按钮时,它会在我的设备上导致错误,当我记录错误时,这就是我得到的:

  [Error: The authorization attempt failed for an unknown reason]

这是什么原因呢?这在实际应用中有效吗?

react-native oauth expo apple-authentication
1个回答
0
投票

我也遇到了同样的问题,请问你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.