Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix clientSecret usage and adds test case #107
This duplicate the fix from #101 and includes a proposed test case that would fail without the fix.
The previous suite of tests would complain if the user leaves off the clientSecret or gives it a value of undefined. But this particular bug happened at the point the clientSecret was assign as part of the query and then converted into a queryString. Since the wrong variable name was passed the query property client_secret was given a value of undefined. Then the queryString conversion method changed the undefined value into an empty string which is valid for a clientSecret.