Skip to content

Commit

Permalink
[AAE-18459] don't invalidate session if authentication is not handled…
Browse files Browse the repository at this point in the history
… by js-api
  • Loading branch information
alep85 committed Dec 11, 2023
1 parent b03a4e3 commit b46e0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js-api/src/alfrescoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b46e0f2

Please sign in to comment.