Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make errors more verbose #6

Open
crazyredd opened this issue Jul 1, 2017 · 0 comments
Open

Make errors more verbose #6

crazyredd opened this issue Jul 1, 2017 · 0 comments

Comments

@crazyredd
Copy link

I just spent the last couple of hours trying to get this library to work, only to find that my client secret was being set to my client id. I unfortunately do not have a node debugger available to me, so I couldn't find where the auth was failing. I did get an error displayed while logging in, but I put this behind a try-catch statement to make sure nothing was sent to the user. This only said "Error". That's it.

I then eventually opened up the source file and went to the offending line. I logged the variables and found that it was bad client credentials.

A chain of dumb mistakes I will concede, but please spare other devs from this frustration by being more specific about errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant