quavedev:apple-oauth
Sign in with Apple handler with native cordova plugin handler. forked from jramer/apple-oauth
Config
Look here for a good example how to get these: https://developer.okta.com/blog/2019/06/04/what-the-heck-is-sign-in-with-apple
The secret
private key needs to have \n instead of newlines in the correct places.
The redirectUri
needs to be https. ngrok/serveo works for development but you need to have the uri added in you apple dev account in the return urls.
"apple": { "nativeClientId": "< your app id (mobile) >", "clientId": "< your service id (for web) >", "teamId": "", "keyId": "", "secret": "-----BEGIN PRIVATE KEY-----\nABC\nABC\nABC\nABC\n-----END PRIVATE KEY-----", "redirectUri": "https://abc.def/_oauth/apple" },
FAQ
- My native app doesn't log in: Check if you built your app with the "Sign in with Apple" capability enabled, and if the provisioning profile also supports it.
- My web app doesn't log in: Check if the keyId/secret/clientId is correct, also check if you have added the redirectUri to the list of authorized redirects, and that it ends with _oauth/apple
- I'm receiving an " " string (note the space) as the name: The user didn't give your app the permission to see the name. Please note that this can happen, and you should handle this case in your app.