Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 36f1e4e

Browse files
committed
Fix to deal with secureCookie's prefix "__Secure-"
1 parent 53df5b3 commit 36f1e4e

File tree

1 file changed

+1
-1
lines changed
  • packages/authjs-nuxt/src/runtime

1 file changed

+1
-1
lines changed

packages/authjs-nuxt/src/runtime/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function mergeCookieObject(
5151
cookieName: string
5252
) {
5353
return Object.entries(headers)
54-
.filter(([k]) => k.startsWith(cookieName))
54+
.filter(([k]) => k.includes(cookieName))
5555
.flatMap(([, v]) => v)
5656
.join("")
5757
}

0 commit comments

Comments
 (0)