From 5903f1fb31eb1cbbcb0d346ebefc716c9d6e68ad Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Thu, 19 Jun 2025 23:44:45 -0400 Subject: [PATCH] fix: incorrect call to APIError from configurable_auth --- src/backend/src/middleware/configurable_auth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/src/middleware/configurable_auth.js b/src/backend/src/middleware/configurable_auth.js index 04fdfa5f..1f61f953 100644 --- a/src/backend/src/middleware/configurable_auth.js +++ b/src/backend/src/middleware/configurable_auth.js @@ -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