From c70e378973ad93ae888be3c4bd4c1ddf195d203f Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Wed, 15 May 2024 15:42:00 -0400 Subject: [PATCH] Add error id for expired auth tokens --- packages/backend/src/api/APIError.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/api/APIError.js b/packages/backend/src/api/APIError.js index 70936559..fee79b9a 100644 --- a/packages/backend/src/api/APIError.js +++ b/packages/backend/src/api/APIError.js @@ -319,6 +319,10 @@ module.exports = class APIError { status: 401, message: 'This authentication token is not supported here.', }, + 'token_expired': { + status: 401, + message: 'Authentication token has expired.', + }, 'account_suspended': { status: 403, message: 'Account suspended.',