Permalink
Browse files

Added _authCallbackDidErr existence check before using it in oauth mo…

…dule.
  • Loading branch information...
1 parent 7843ba7 commit 83eecee317d7e2d53faea5e7c71bdc0cdb8ff55b @bnoguchi committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/modules/oauth.js
View
@@ -126,7 +126,7 @@ everyModule.submodule('oauth')
// Steps for GET `callbackPath`
.extractTokenAndVerifier( function (req, res) {
- if (this._authCallbackDidErr(req)) {
+ if (this._authCallbackDidErr && this._authCallbackDidErr(req)) {
return this.breakTo('authCallbackErrorSteps', req, res);
}
var parsedUrl = url.parse(req.url, true)

0 comments on commit 83eecee

Please sign in to comment.