Skip to content

Commit

Permalink
Add 400 & 404 to ignore loggging for session patching.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Aug 10, 2023
1 parent bff1109 commit 3fa2f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
Expand Down

0 comments on commit 3fa2f75

Please sign in to comment.