ciaranj / connect-auth

Authentication middleware for connect.
MIT License
813 stars 114 forks source link

Check the err return from generateAccessToken() #106

Closed evanp closed 12 years ago

evanp commented 12 years ago

We weren't checking the err result from the OAuth provider's generateAccessToken(), which would cause reference errors if the result was null or undefined.

Now, check it, and return an error if there is one.