1. Atlassian
  2. Atlassian Connect
  3. atlassian-connect-express

Commits

Sam Day  committed f51f6f1

Fix for promise handlers in oauth middleware.

  • Participants
  • Parent commits 2c560a4
  • Branches master

Comments (0)

Files changed (1)

File lib/middleware/oauth.js

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