From 1ae97267a0556b64981ad5901b0a33a8fb8b2827 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 30 May 2017 01:21:43 +0000 Subject: [PATCH] typo fix --- lib/apis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apis.js b/lib/apis.js index e7970a7..6ffe6ec 100644 --- a/lib/apis.js +++ b/lib/apis.js @@ -174,7 +174,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { res.send({ error: { message: "You must be logged in", code: "E_NO_AUTHN" } }); return; } - if ('string' !== req.oauth3.token.scp) { + if ('string' !== typeof req.oauth3.token.scp) { res.send({ error: { message: "Token must contain a grants string in 'scp'", code: "E_NO_GRANTS" } }); return; }