fix: incorrect call to APIError from configurable_auth

This commit is contained in:
KernelDeimos
2025-06-19 23:44:45 -04:00
parent 5b7b524080
commit 5903f1fb31

View File

@@ -59,9 +59,9 @@ const configurable_auth = options => async (req, res, next) => {
token = req.header('Authorization');
token = token.replace('Bearer ', '').trim();
if ( token === 'undefined' ) {
APIError.create('unexpected_undefined', null,
`The Authorization token cannot be the string "undefined"`
);
APIError.create('unexpected_undefined', null, {
msg: `The Authorization token cannot be the string "undefined"`
});
}
}
// Cookie