1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

fix(*): fix login issue

This commit is contained in:
Krishna Acondy
2021-01-19 09:29:29 +00:00
parent 00f09179a8
commit e31774ae9d
2 changed files with 5 additions and 2 deletions

View File

@@ -91,7 +91,10 @@ export class AuthManager {
*/
public async checkSession() {
const loginResponse = await axios.get(this.loginUrl.replace('.do', ''), {
responseType: 'text'
responseType: 'text',
headers: {
Accept: '*/*'
}
})
const responseText = await loginResponse.data
const isLoggedIn = /<button.+onClick.+logout/gm.test(responseText)