mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-01 17:50:06 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0f80a1c1f | ||
| d0d8d58945 |
@@ -611,7 +611,10 @@ export const throwIfError = (response: AxiosResponse) => {
|
||||
throw new LoginRequiredError(response.data)
|
||||
}
|
||||
|
||||
if (response.data.toLowerCase() === 'invalid csrf token!') {
|
||||
if (
|
||||
typeof response.data === 'string' &&
|
||||
response.data.toLowerCase() === 'invalid csrf token!'
|
||||
) {
|
||||
throw new InvalidCsrfError()
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user