expo: [AppleAuthentication][Managed app][iOS] Standalone: AuthorizationError error 1000

šŸ› Bug Report

I am able to sign in with apple when I’m using my app through the iOS Expo Client. However, I’m having an error in my standalone app

The error:

The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)

The code:

try {
      const data = await AppleAuthentication.signInAsync({
        requestedScopes: [
          AppleAuthentication.AppleAuthenticationScope.FULL_NAME,
          AppleAuthentication.AppleAuthenticationScope.EMAIL
        ]
      })
} catch (error) {
// the error happens here
}

I suspect it’s a configuration issue, but I followed the steps in:

Any ideas what could be the issue?

Environment

Production - Managed App - Standalone iOS

Steps to Reproduce

N/A

Expected Behavior

Pressing the sign in button should open the sign in modal.

Actual Behavior

Pressing the sign in button throws an error.

Reproducible Demo

N/A

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 11
  • Comments: 29 (12 by maintainers)

Most upvoted comments

Make sure the ā€œApple Sign-inā€ entitlement is added to your build settings. If you’re running a development build, try switching to a production build. You might need to go as far as signing the app bundle for Ad Hoc distribution and installing it that way, vs. running in Xcode.

don’t forget add apple sign-in capabilities at xcode target project

@tsapeta the archive build worked like a charm. Odd that it’s not working as expected on a simulator

Adding the entitlement is only relevant if you are building the app with Xcode. In managed mode Expo does the build for you so they are responsible for that setting.

I wonder if it has something to do with needing to update the entitlements in the distribution profile that the .ipa is signed with. I saw some mentions about needing to re-generate the profiles when turning on new entitlements.

Yeah, I think it might be needed. Could you try to run a new build with expo build:ios --clear-provisioning-profile --revoke-credentials which should recreate a new provisioning profile with updated capabilities inside. Let me know if it doesn’t help šŸ™‚

I’m experiencing the same thing, with the same error message: ERR_APPLE_AUTHENTICATION_REQUEST_FAILED: The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)

Apple sign-in doesn’t work for me either after simulator build.

it used to run on simulators just fine. But now it isn’t. I’m getting the same error

@dankras, do you have expo.ios.usesAppleSignIn set to true in your app.json? If not, then try to add this and make another build šŸ™‚ This lets our builders know to add appropriate entitlements and capabilities to your app.