mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-06 20:10:05 +00:00
fix: csrf token fetch and empty webout promise finish
This commit is contained in:
9
src/types/errors/InvalidCsrfError.ts
Normal file
9
src/types/errors/InvalidCsrfError.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class InvalidCsrfError extends Error {
|
||||
constructor() {
|
||||
const message = 'Invalid CSRF token!'
|
||||
|
||||
super(`Auth error: ${message}`)
|
||||
this.name = 'InvalidCsrfError'
|
||||
Object.setPrototypeOf(this, InvalidCsrfError.prototype)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user