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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. 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
- const [name] = cookie.trim().split("=");
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=")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-auth",
3
- "version": "0.3.5-beta.4",
3
+ "version": "0.3.5-beta.5",
4
4
  "description": "The most comprehensive authentication library for TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",