twogate / cordova-plugin-sign-in-with-apple

A native-implemented plugin of Sign in with Apple // Thanks to your contribution! // Cordova>=8 iOS>=13
https://www.npmjs.com/package/cordova-plugin-sign-in-with-apple
MIT License
74 stars 48 forks source link

Authorization failed - Error 1000 #27

Open dev3inv opened 4 years ago

dev3inv commented 4 years ago

When I try to use the login I get an error 1000. I have configured the sign in with apple capability, do you have any idea that another action could generate this problem?

SailingSteve commented 4 years ago

I had this working last week, and now I am getting error 1000 again. How dumb (on Apples part) to even have an error 1000 with no explanation that lots of people run into.

dev3inv commented 4 years ago

Exactly, the same thing happened to me. 2 weeks ago it was working fine, but last week it failed and I still haven't found a solution :/

tapionx commented 4 years ago

same here, it was working last month and now i have error 1000.

SailingSteve commented 4 years ago

I test using an ngrok tunnel to the backend (in our case Django Python) running on my Mac. And in this case last week I started getting error 1000.

Today, on an actual iPhone Xs Max, I get the following response (tokens and user codes shortened ...)

{"email":"","authorizationCode":"ca05db...d7f.0.mruxr.ldAyZWU4oap...RQ","state":"","identityToken":"eyJraWQiOiI...O_CYxnlLBgkQLRjZCnjc1MS6N0g","fullName":{"nickname":"","phoneticRepresentation":{},"middleName":"","familyName":"","namePrefix":"","givenName":"","nameSuffix":""},"user":"001471.b4fbedffd8c14238afed43089ab73549.2015"}

It is strange that the email is "", as well as the name fields at the end are all blank. I would expect the name fields to be not there on the second sign in on the device, and populated with data on the first. Something must have changed.

So I am now able to get the cordova-plugin-sign-in-with-apple working on a real phone tethered to XCode via a USB cable, but still get error 1000 with Simulator instances.

The response that I am getting on my tethered phone today, has a good JWT in the identityToken field, and when I send it to my server and decrypt it there, I get good data: name and email on the first signin with siwa on the phone, and just the email on subsequent signins.

marioshtika commented 4 years ago

I was having the same problem. I was testing it on an emulator and I was getting the 1000 error. But when I uploaded to Testflight it worked. Is this something that Apple is not allowing to be tested on an emulator anymore?

codeconsole commented 4 years ago

I think this has to do with the number of times you tested on that device or account. I launched an emulator for a different device and it worked. I am assuming that if I reset the other device it will work or perhaps waiting a certain amount of time will allow access again.

codeconsole commented 4 years ago

If I delete the simulator here: https://appleid.apple.com/account/manage then erase all content and settings on simulator then deploy the app again, it works.

webkhushboo commented 3 years ago

apple login is working on emulator but when I am creating build and installing on real device its not working . Can somebody help me ?

When I try to debug the issue . I got this issue code: "1000" error: "ASAUTHORIZATION_ERROR" localizedDescription: "The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)"