From b46e0f2dc4e2b6c6be8b6c766af95a094fb99e3f Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Mon, 11 Dec 2023 15:31:31 +0100 Subject: [PATCH] [AAE-18459] don't invalidate session if authentication is not handled by js-api --- lib/js-api/src/alfrescoApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js-api/src/alfrescoApi.ts b/lib/js-api/src/alfrescoApi.ts index 33daa63b0f6..f46975c506b 100644 --- a/lib/js-api/src/alfrescoApi.ts +++ b/lib/js-api/src/alfrescoApi.ts @@ -207,7 +207,7 @@ export class AlfrescoApi implements Emitter, AlfrescoApiType { /**@private? */ errorHandler(error: { status?: number }) { - if (error.status === 401) { + if (this.config.oauthInit && error.status === 401) { this.invalidateSession(); }