React-native-apple-authentication: appleAuth.getCredentialStateForUser giving error code =1000

Created on 2 Jan 2020  路  5Comments  路  Source: invertase/react-native-apple-authentication

please help when ever am calling this function this error pop up

  const credentialState = await appleAuth.getCredentialStateForUser(
    user
  );

Most helpful comment

I had the same issue, and I have solved it by adding the capability to Xcode

press on your project name in xcode,

then press on the tab 'Signup & capabilities',

then press '+ Capability' and add 'sign up with apple'

All 5 comments

Open Xcode and add Sign In With Apple in ( Signing & Capabilities )

getting same error
[Error: The operation couldn鈥檛 be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)]
"Sign In With Apple" enabled in Xcode

I had the same issue, and I have solved it by adding the capability to Xcode

press on your project name in xcode,

then press on the tab 'Signup & capabilities',

then press '+ Capability' and add 'sign up with apple'

This appears to be project setup error. Discussion can continue but it is not actionable for the module

Tried everything, cleaned project, reinstalled all dependencies and still same...

image
image
image

    const appleAuthRequestResponse = await appleAuth.performRequest({
        requestedOperation: AppleAuthRequestOperation.LOGIN,
        requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME],
    });

    console.dir(appleAuthRequestResponse);

    const credentialState = await appleAuth.getCredentialStateForUser(appleAuthRequestResponse.user);

    console.dir(credentialState);
Was this page helpful?
0 / 5 - 0 ratings