Skip to content

Commit 5903f1f

Browse files
committed
fix: incorrect call to APIError from configurable_auth
1 parent 5b7b524 commit 5903f1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/src/middleware/configurable_auth.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ const configurable_auth = options => async (req, res, next) => {
5959
token = req.header('Authorization');
6060
token = token.replace('Bearer ', '').trim();
6161
if ( token === 'undefined' ) {
62-
APIError.create('unexpected_undefined', null,
63-
`The Authorization token cannot be the string "undefined"`
64-
);
62+
APIError.create('unexpected_undefined', null, {
63+
msg: `The Authorization token cannot be the string "undefined"`
64+
});
6565
}
6666
}
6767
// Cookie

0 commit comments

Comments
 (0)