UNPKG
@curveball/session
Version:
latest (1.0.1)
1.0.1
1.0.0
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
Session storage using HTTP cookies
github.com/curveball/session
curveball/session
@curveball/session
/
src
/
errors.ts
15 lines
(11 loc)
•
254 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
class
CsrfError
extends
Error
{
type
=
'https://curveball.org/errors/csrf-error'
; title =
'CSRF Error'
;
detail
:
string
; httpStatus =
403
; instance =
null
;
constructor
(
message
:
string
) {
super
();
this
.
detail
= message; } }