Преглед на файлове

Add error id for expired auth tokens

KernelDeimos преди 1 година
родител
ревизия
c70e378973
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      packages/backend/src/api/APIError.js

+ 4 - 0
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.',