-
Notifications
You must be signed in to change notification settings - Fork 345
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
Authenticating consumer no longer requires options to be passed, all… #470
Authenticating consumer no longer requires options to be passed, all… #470
Conversation
…owing authenticateToken to work correctly
Codecov Report
@@ Coverage Diff @@
## master #470 +/- ##
=======================================
Coverage 91.35% 91.35%
=======================================
Files 213 213
Lines 9174 9174
=======================================
Hits 8381 8381
Misses 793 793
Continue to review full report at Codecov.
|
lib/services/auth.js
Outdated
@@ -106,6 +106,7 @@ s.authorizeCredential = function (id, authType, scopes) { | |||
}; | |||
|
|||
s.validateConsumer = function (id, options) { | |||
options = options || {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can probably do function(id, options = {})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Need to remember this! Shall update now and push.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ons_default Authenticating consumer no longer requires options to be passed, all…
Previously, authenticateToken() did not work when needing to validate consumer due to not passing options.
As options are not required, don't make them required.