mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 12:30:06 +00:00
fix: login issues
This commit is contained in:
2
sasjs-tests/package-lock.json
generated
2
sasjs-tests/package-lock.json
generated
@@ -2005,7 +2005,7 @@
|
|||||||
},
|
},
|
||||||
"@sasjs/adapter": {
|
"@sasjs/adapter": {
|
||||||
"version": "file:../build/sasjs-adapter-5.0.0.tgz",
|
"version": "file:../build/sasjs-adapter-5.0.0.tgz",
|
||||||
"integrity": "sha512-I0+x3VCnkjW205c4CZvQjxhDLn/6lvb7GyRFaNFcFl15jO4UNTuNhzYB4f6euKQgXezBgZEDTtXrccv5wBAJ4w==",
|
"integrity": "sha512-tOfj4108VQl6kDZahWklpRiCVCzR+y4cIIwb9tH/A9Zw3rJDKSyyZBZIc8GXelS6YoCd3sj4cMT1vacwXpCMvg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@sasjs/utils": "^2.27.1",
|
"@sasjs/utils": "^2.27.1",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
|
|||||||
@@ -124,7 +124,8 @@ export class AuthManager {
|
|||||||
|
|
||||||
if (!isLoggedIn) {
|
if (!isLoggedIn) {
|
||||||
//We will logout to make sure cookies are removed and login form is presented
|
//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>(
|
const { result: formResponse } = await this.requestClient.get<string>(
|
||||||
this.loginUrl.replace('.do', ''),
|
this.loginUrl.replace('.do', ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user