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

fix: csrfTokenWeb setter callback

This commit is contained in:
Mihajlo Medjedovic
2020-08-18 13:17:29 +02:00
parent 005f10bb47
commit 0479a5d651
2 changed files with 12 additions and 2 deletions

View File

@@ -9,7 +9,8 @@ export class FileUploader {
private appLoc: string,
private serverUrl: string,
private jobsPath: string,
private csrfToken: CsrfToken | null = null
private setCsrfTokenWeb: any,
private csrfToken: CsrfToken | null = null,
) {}
private retryCount = 0;
@@ -61,6 +62,8 @@ export class FileUploader {
headerName: tokenHeader,
value: token || "",
};
this.setCsrfTokenWeb(this.csrfToken);
}
}
}