@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/package.json CHANGED
@@ -87,5 +87,5 @@
87
87
  "https": "1.0.0",
88
88
  "tough-cookie": "4.0.0"
89
89
  },
90
- "version": "3.10.8"
90
+ "version": "3.10.9"
91
91
  }
@@ -611,7 +611,10 @@ export const throwIfError = (response: AxiosResponse) => {
611
611
  throw new LoginRequiredError(response.data)
612
612
  }
613
613
 
614
- if (response.data.toLowerCase() === 'invalid csrf token!') {
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