Commits

Rich Manalang [Atlassian] committed 5b9e50e Merge

Merged in sday_atlassian/atlassian-connect-express/oauth-promise-wtf (pull request #9)

Fix for promise handler in oauth middleware.

Comments (0)

Files changed (1)

lib/middleware/oauth.js

           else {
             verify(consumer.publicKey);
           }
-        },
-        function (err) {
+        }).fail(function (err) {
           send(401, 'OAuth request not authenticated due to consumer lookup failure: ' + err)
         }
       );