ananay / apple-auth

Sign in with Apple for Node.js
326 stars 59 forks source link

AccessToken error response data #41

Closed mitjapotocin closed 11 months ago

mitjapotocin commented 11 months ago

Fixes: https://github.com/ananay/apple-auth/issues/31

Adding more verbose error message for accessToken call. Apple provides the reason why the request was rejected eg.:

 {
  error: 'invalid_grant',
  error_description: 'The code has already been used.'
}
ananay commented 11 months ago

Thanks!