From bb8573dd7b4b6bd2c33df9cda85757dd4412451d Mon Sep 17 00:00:00 2001 From: Lera24 Date: Thu, 23 May 2024 16:23:41 +0300 Subject: [PATCH] fix: redirect in error[WTEL-4395] --- src/api/auth/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/auth/auth.js b/src/api/auth/auth.js index 7597ed93..dd167d60 100644 --- a/src/api/auth/auth.js +++ b/src/api/auth/auth.js @@ -82,7 +82,7 @@ const checkCurrentSession = async () => { const token = localStorage.getItem('access-token'); if (!token || token === 'undefined') { clearToken(); - throw new Error('No valid access-token in localStorage'); + console.info('No valid access-token in localStorage present at checkCurrentSession'); } await checkSessionByCookies();