ananay / apple-auth

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

Added in debug mode flag that currently returns more information in error states. #35

Closed KeystoneScience closed 9 months ago

KeystoneScience commented 1 year ago

Added in debug mode flag that currently returns more information in error states. Also added some documentation for a "custom configuration" of the library as a 4th argument object passed into the constructor.

changed response -> error in the accessToken method to better suit the type.

KeystoneScience commented 1 year ago

I found this to be useful to myself when getting Apple Auth set up, if there are any improvements you would like to be see made before merging this in, let me know and I will work on them.

Thanks!

ananay commented 9 months ago

Rebased and added a comment. Developers need a little bit of verbose logging either way, but the trace will be printed out to console.error if the customConfig debug is set.

Thanks so much for your PR!