adapted error code
This commit is contained in:
1 parent
22825f8d23
commit
4db3517fda
1 file changed
+1
@@ -85,6 +85,7 @@ async function run () {
|
||||
}),
|
||||
function (err, req, res, next) {
|
||||
if (err.code === 'invalid_token') {
|
||||
res.status(401)
|
||||
res.send({
|
||||
'type': 'invalidToken',
|
||||
'subType': err.message
|
||||
|
||||
Reference in new issue
Block a user