1
0
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:
2022-05-20 16:43:46 +02:00
parent ae13ca523c
commit 6d47174a5e
3 changed files with 38 additions and 2 deletions

View 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)
}
}