Skip to content

Commit

Permalink
style: run check:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 27, 2024
1 parent 252aeef commit 8c60d03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ type ExtraCookieOptions = {
}

export type CSRFCookieOptions = SetCookieOptions & ExtraCookieOptions
export type ResolvedCSRFCookieOptions = SetCookieOptions
& Required<Pick<ExtraCookieOptions, "name">>
& Exclude<ExtraCookieOptions, "name">
export type ResolvedCSRFCookieOptions = SetCookieOptions &
Required<Pick<ExtraCookieOptions, "name">> &
Exclude<ExtraCookieOptions, "name">

export type TokenRetriever<
Request extends CSRFRequest = CSRFRequest,
Expand Down
6 changes: 3 additions & 3 deletions tests/doublecsrf.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert, describe, it } from "vitest"
import { sign, unsign } from "@otterhttp/cookie-signature"
import { assert, describe, it } from "vitest"

import { createTestSuite } from "./testsuite"
import { COOKIE_SECRET, HEADER_KEY } from "./utils/constants"
Expand Down Expand Up @@ -28,8 +28,8 @@ createTestSuite("csrf-csrf single secret with cookie-signing", {
const result = unsign(signedValue.slice(2), COOKIE_SECRET)
if (result === false) throw new Error()
return result
}
}
},
},
})

createTestSuite("csrf-csrf custom options, single secret", {
Expand Down

0 comments on commit 8c60d03

Please sign in to comment.