Skip to content

Commit

Permalink
fix: login is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Nov 1, 2024
1 parent 6624d26 commit d283b40
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/config/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
options: {
cookieOptions: {
name: "__Host-durhack-live.x-csrf-token",
domain: undefined,
domain: null,
sameSite: "strict",
path: "/",
secure: true,
Expand All @@ -20,7 +20,7 @@ export default {
session: {
cookie: {
name: "__Host-durhack-live-session",
domain: undefined,
domain: null,
path: "/",
secure: true,
sameSite: "lax",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@otterhttp/csrf-csrf": "^3.2.0",
"@otterhttp/errors": "^0.2.1",
"@otterhttp/parsec": "^0.2.1",
"@otterhttp/session": "^0.3.1",
"@otterhttp/session": "^0.3.2",
"@prisma/client": "^5.21.1",
"http-errors": "^2.0.0",
"jose": "^5.6.3",
Expand Down
6 changes: 3 additions & 3 deletions server/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export const listenOptionsSchema = z.object({
})

export const cookieOptionsSchema = z.object({
sameSite: z.enum(["none", "lax", "strict"]).optional(),
path: z.string().optional(),
sameSite: z.enum(["none", "lax", "strict"]).nullish(),
path: z.string().nullish(),
secure: z.boolean(),
domain: z.string().optional(),
domain: z.string().nullish(),
})

export const doubleCsrfOptionsSchema = z.object({
Expand Down

0 comments on commit d283b40

Please sign in to comment.