@sasjs/adapter 3.10.8 → 3.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/node/index.js +2 -2
- package/package.json +1 -1
- package/src/request/RequestClient.ts +4 -1
package/package.json
CHANGED
|
@@ -611,7 +611,10 @@ export const throwIfError = (response: AxiosResponse) => {
|
|
|
611
611
|
throw new LoginRequiredError(response.data)
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
if (
|
|
614
|
+
if (
|
|
615
|
+
typeof response.data === 'string' &&
|
|
616
|
+
response.data.toLowerCase() === 'invalid csrf token!'
|
|
617
|
+
) {
|
|
615
618
|
throw new InvalidCsrfError()
|
|
616
619
|
}
|
|
617
620
|
break
|