This commit is contained in:
AJ ONeal 2017-05-30 01:21:43 +00:00
parent f07780ac4e
commit 1ae97267a0
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
res.send({ error: { message: "You must be logged in", code: "E_NO_AUTHN" } }); res.send({ error: { message: "You must be logged in", code: "E_NO_AUTHN" } });
return; 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" } }); res.send({ error: { message: "Token must contain a grants string in 'scp'", code: "E_NO_GRANTS" } });
return; return;
} }