@@ -3,7 +3,7 @@ import type { DoubleCsrfConfig } from "@/types"
3
3
/* eslint-disable @typescript-eslint/ban-ts-comment */
4
4
import { assert , describe , it } from "vitest"
5
5
import { createTestSuite } from "./testsuite"
6
- import { COOKIE_SECRET , HEADER_KEY } from "./utils/constants" ;
6
+ import { COOKIE_SECRET , HEADER_KEY } from "./utils/constants"
7
7
import {
8
8
attachResponseValuesToRequest ,
9
9
getMultipleSecrets ,
@@ -29,7 +29,12 @@ createTestSuite("csrf-csrf signed, single secret", {
29
29
createTestSuite ( "csrf-csrf signed with custom options, single secret" , {
30
30
getSecret : getSingleSecret ,
31
31
getSessionIdentifier : legacySessionIdentifier ,
32
- cookieOptions : { name : "__Host.test-the-thing.token" , signed : true , getSigningSecret : ( ) => COOKIE_SECRET , sameSite : "strict" } ,
32
+ cookieOptions : {
33
+ name : "__Host.test-the-thing.token" ,
34
+ signed : true ,
35
+ getSigningSecret : ( ) => COOKIE_SECRET ,
36
+ sameSite : "strict" ,
37
+ } ,
33
38
size : 128 ,
34
39
delimiter : "~" ,
35
40
hmacAlgorithm : "sha512" ,
@@ -49,7 +54,12 @@ createTestSuite("csrf-csrf signed, multiple secrets", {
49
54
createTestSuite ( "csrf-csrf signed with custom options, multiple secrets" , {
50
55
getSecret : getMultipleSecrets ,
51
56
getSessionIdentifier : legacySessionIdentifier ,
52
- cookieOptions : { name : "__Host.test-the-thing.token" , signed : true , getSigningSecret : ( ) => COOKIE_SECRET , sameSite : "strict" } ,
57
+ cookieOptions : {
58
+ name : "__Host.test-the-thing.token" ,
59
+ signed : true ,
60
+ getSigningSecret : ( ) => COOKIE_SECRET ,
61
+ sameSite : "strict" ,
62
+ } ,
53
63
size : 128 ,
54
64
errorConfig : {
55
65
statusCode : 401 ,
0 commit comments