diff --git a/src/auth/AuthManager.ts b/src/auth/AuthManager.ts index c5bb188..a9dce8a 100644 --- a/src/auth/AuthManager.ts +++ b/src/auth/AuthManager.ts @@ -223,9 +223,17 @@ export class AuthManager { private async getNewLoginForm() { if (this.serverType === ServerType.Sasjs) { - // server will be sending CSRF cookie, + // server will be sending CSRF token in response, + // need to save in cookie so that, // http client will use it automatically - return this.requestClient.get('/', undefined) + return this.requestClient.get('/', undefined).then(({ result }) => { + const cookie = + /