Skip to content

Commit

Permalink
Revert "fix: try this?"
Browse files Browse the repository at this point in the history
This reverts commit 814d0cc.
  • Loading branch information
itsjoeoui committed Apr 29, 2024
1 parent 814d0cc commit 2a7fcde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ const app = new Elysia()
"use-superjson",
"superjson-meta",
"flojoy-workspace-personal-secret",
"cookie",
],
exposedHeaders: ["superjson-meta", "cookie"],
exposedHeaders: ["superjson-meta"],
}),
)
.use(swagger())
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/middlewares/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const AuthMiddleware = new Elysia()
}

// use headers instead of Cookie API to prevent type coercion
const cookieHeader = context.request.headers.get("cookie") ?? "";
const cookieHeader = context.request.headers.get("Cookie") ?? "";
const sessionId = lucia.readSessionCookie(cookieHeader);
if (!sessionId) {
return {
Expand Down

0 comments on commit 2a7fcde

Please sign in to comment.