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

fix: when sas fails with verifying credentials, resend request with new csrf token

This commit is contained in:
2021-05-28 15:05:44 +02:00
parent 0aa0ae65e0
commit 460575b462
6 changed files with 50 additions and 44 deletions

View File

@@ -91,10 +91,7 @@ export class SessionManager {
}
private async createAndWaitForSession(accessToken?: string) {
const {
result: createdSession,
etag
} = await this.requestClient
const { result: createdSession, etag } = await this.requestClient
.post<Session>(
`${this.serverUrl}/compute/contexts/${
this.currentContext!.id