Skip to content

Commit

Permalink
remove expires
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 7, 2024
1 parent 1ed83cf commit 5ab1320
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/ui/docs-bundle/src/server/auth/withSecure.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import type { ResponseCookie } from "next/dist/compiled/@edge-runtime/cookies";

const DEFAULT_EXPIRES = 30 * 24 * 60 * 60 * 1000; // 30 days

export const withSecureCookie = (opts?: Partial<ResponseCookie>): Partial<ResponseCookie> => ({
expires: DEFAULT_EXPIRES,
...opts,
secure: true,
httpOnly: true,
Expand Down

0 comments on commit 5ab1320

Please sign in to comment.