From 3fa2f75947a1b2cd15aaecde14c4bb7c34b26d16 Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Thu, 10 Aug 2023 10:30:15 +0200 Subject: [PATCH] Add 400 & 404 to ignore loggging for session patching. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 6e07d4f..4bb2e85 100644 --- a/src/index.js +++ b/src/index.js @@ -256,8 +256,8 @@ class LoginClient { userIdentityTokenStorageManager.set(sessionResult.data.id_token, expiry); } } catch (error) { - // On 409 we know that the session is no longer able to be continued. - if (error.status !== 409) { + // On 400, 404, 409 we know that the session is no longer able to be continued. + if (error.status !== 400 && error.status !== 404 && error.status !== 409) { this.logger && this.logger.log({ title: 'Failed attempting to check if the user has an existing authentication session', error }); } }