diff --git a/packages/core/src/lib/init.ts b/packages/core/src/lib/init.ts index 9e8ca122f6..260d51094b 100644 --- a/packages/core/src/lib/init.ts +++ b/packages/core/src/lib/init.ts @@ -106,7 +106,8 @@ export async function init({ provider, cookies: merge( cookie.defaultCookies( - config.useSecureCookies ?? url.protocol === "https:" + config.useSecureCookies ?? url.protocol === "https:", + config.cookieName ?? "authjs", ), config.cookies ),