mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-15 18:33:52 +00:00
fix: incorrect call to APIError from configurable_auth
This commit is contained in:
1 parent
5b7b524080
commit
5903f1fb31
1 file changed
+3
-3
@@ -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