1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix: login issues

This commit is contained in:
2021-07-29 14:27:17 +02:00
parent b217499b59
commit 0bf385d1e0
2 changed files with 3 additions and 2 deletions

View File

@@ -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",

View File

@@ -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<string>(
this.loginUrl.replace('.do', ''),