Skip to content

Commit

Permalink
Fixed path in flashCookieOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoheat committed Dec 14, 2023
1 parent fa6f2e0 commit 9cb18e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { CookieSerializeOptions } from './cookie-es-main/index.js';
// Cannot change.
const cookieName = 'flash';

export const flashCookieOptions: CookieSerializeOptions = {
export const flashCookieOptions: CookieSerializeOptions & { path: string } = {
path: '/',
maxAge: 120,
httpOnly: false,
Expand Down

0 comments on commit 9cb18e1

Please sign in to comment.