Skip to content

Commit

Permalink
Fix setCookie() method in SvelteKit middleware (lucia-auth#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowOnPaper committed Dec 19, 2023
1 parent 625350e commit ee4a803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .auri/$ypf7ombn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "lucia" # package name
type: "patch" # "major", "minor", "patch"
---

Fix `setCookie()` method in SvelteKit middleware
2 changes: 1 addition & 1 deletion packages/lucia/src/middleware/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const sveltekit = (): Middleware<[SvelteKitRequestEvent]> => {
sessionCookie: event.cookies.get(sessionCookieName) ?? null,
setCookie: (cookie) => {
event.cookies.set(cookie.name, cookie.value, {
path: "",
path: ".",
...cookie.attributes
});
}
Expand Down

0 comments on commit ee4a803

Please sign in to comment.