Apple Native Social Javascript Callback
Back to All

Apple Native Social Javascript Callback

Hi,

We use the Native Social Plugin to login with Apple. The javascript callback return a response with an idToken and a code, neither of them work when we try to send it to Login Radius API call. https://www.loginradius.com/docs/api/v2/customer-identity-api/social-login/native-social-login-api/access-token-via-apple-id-code/.

It gives us this error

{
"errorCode": 1000,
"isProviderError": true,
"providerErrorResponse": "oauth2: cannot fetch token: 400 Bad Request\nResponse: {"error":"invalid_grant","error_description":"The code has expired or has been revoked."}",
"message": "An error has occurred at the social identity provider’s end.",
"description": "An error has occurred at the social identity provider’s end, please check the ‘providerErrorResponse’ for more details."
}

So it seems the error come from the provider (Apple) and it doesnt seems to like the code.

Do you have any idea of what it could be ?