better-auth 0.3.5-beta.4 → 0.3.5-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3945,8 +3945,9 @@ var crossSubdomainCookies = (options) => {
|
|
|
3945
3945
|
authCookies.dontRememberToken.name
|
|
3946
3946
|
];
|
|
3947
3947
|
const updatedCookies = setCookie.split(",").map((cookie) => {
|
|
3948
|
-
|
|
3948
|
+
let [name] = cookie.trim().split("=");
|
|
3949
3949
|
if (!eligibleCookies.includes(name)) return cookie;
|
|
3950
|
+
name = name.replace("__Host-", "");
|
|
3950
3951
|
const parts = cookie.split(";").map((part) => part.trim());
|
|
3951
3952
|
const domainIndex = parts.findIndex(
|
|
3952
3953
|
(part) => part.toLowerCase().startsWith("domain=")
|