mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-07 05:30:31 -06:00
fix: incorrect call to APIError from configurable_auth
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user