diff --git a/sasjs-tests/package-lock.json b/sasjs-tests/package-lock.json index 72b192f..6fb22f2 100644 --- a/sasjs-tests/package-lock.json +++ b/sasjs-tests/package-lock.json @@ -2005,7 +2005,7 @@ }, "@sasjs/adapter": { "version": "file:../build/sasjs-adapter-5.0.0.tgz", - "integrity": "sha512-I0+x3VCnkjW205c4CZvQjxhDLn/6lvb7GyRFaNFcFl15jO4UNTuNhzYB4f6euKQgXezBgZEDTtXrccv5wBAJ4w==", + "integrity": "sha512-tOfj4108VQl6kDZahWklpRiCVCzR+y4cIIwb9tH/A9Zw3rJDKSyyZBZIc8GXelS6YoCd3sj4cMT1vacwXpCMvg==", "requires": { "@sasjs/utils": "^2.27.1", "axios": "^0.21.1", diff --git a/src/auth/AuthManager.ts b/src/auth/AuthManager.ts index 2418d67..7d29cf9 100644 --- a/src/auth/AuthManager.ts +++ b/src/auth/AuthManager.ts @@ -124,7 +124,8 @@ export class AuthManager { if (!isLoggedIn) { //We will logout to make sure cookies are removed and login form is presented - this.logOut() + //Residue can happen in case of session expiration + await this.logOut() const { result: formResponse } = await this.requestClient.get( this.loginUrl.replace('.do', ''),