Post

Replies

Boosts

Views

Activity

Reply to `invalid_grant` when exchanging authorization code obtained from `ASAuthorizationAppleIDCredential` on the server-side
hi everyone, i had run, i use for verify use on service when i login apple account below app curl --location --request POST 'https://appleid.apple.com/auth/token' \-header 'content-type: application/x-www-form-urlencoded' \ -data-urlencode 'clientid="..."' \ -data-urlencode 'clientsecret="...."' \ -data-urlencode 'granttype=authorizationcode' \ -data-urlencode 'code="...."' with: clientid: "App ID" -> Bundle ID clientsecret: "App Token" -> I use code code nodeJS of billinghamj, i run online on web page 'repl.it/languages/nodejs' granttype: "authorizationcode" code: "sent from the app" if error = "InvalidClient" -> Bundle id or clientsecret wrong error = "invalid_grant" = please get new code sent from the app. thanks.
Jul ’20