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

fix(*): expose CSRF token, add getFolder API

This commit is contained in:
Krishna Acondy
2021-02-10 08:19:48 +00:00
parent 1b251f1cea
commit 269514a44f
3 changed files with 26 additions and 7 deletions

View File

@@ -60,13 +60,7 @@ export class AuthManager {
}
)
let loggedIn
if (isAuthorizeFormRequired(loginResponse)) {
await this.requestClient.authorize(loginResponse)
} else {
loggedIn = isLogInSuccess(loginResponse)
}
let loggedIn = isLogInSuccess(loginResponse)
if (!loggedIn) {
const currentSession = await this.checkSession()