Files
myeasycms-v2/package.json
Giancarlo Buomprisco f0baf4f348 Fix cookie sameSite attribute (#443)
* fix: set i18n cookie SameSite=lax to survive cross-domain redirects

The i18n language cookie was being reset to default after Supabase
email verification redirects because the cookie was using the default
SameSite=strict setting which doesn't survive cross-domain navigation.

Changes:
- Set cookieOptions.sameSite to 'lax' to allow cookie to persist through
  cross-domain redirects (like Supabase auth flows)
- Set secure flag dynamically based on HTTPS protocol
- Set cookie path to '/' for site-wide availability
- Set cookie expiration to 1 year
- Change detection order to prioritize cookie over htmlTag

Bumps version to 2.23.4

* fix: set theme cookie SameSite=lax to survive cross-domain redirects

Apply the same fix as the i18n cookie to the theme cookie. The theme
preference cookie was also missing SameSite=lax attribute, causing it
to potentially be lost during cross-domain authentication flows.

Changes:
- Add SameSite=lax to theme cookie
- Add Secure flag conditionally based on HTTPS protocol
- Fix typo: setCookeTheme -> setCookieTheme

* fix: correct SameSite casing and add security to sidebar cookie

- Fix SameSite value to use proper capitalization (Lax instead of lax)
  for better browser compatibility
- Add SameSite=Lax and conditional Secure flag to sidebar state cookie
- Add typeof window check for defensive programming

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-11 15:10:49 +01:00

55 lines
2.2 KiB
JSON

{
"name": "next-supabase-saas-kit-turbo",
"version": "2.23.4",
"private": true,
"sideEffects": false,
"engines": {
"node": ">=20.10.0"
},
"author": {
"url": "https://makerkit.dev",
"name": "MakerKit"
},
"scripts": {
"turbo": "turbo",
"preinstall": "pnpm run --filter scripts requirements",
"postinstall": "manypkg fix",
"build": "turbo build --cache-dir=.turbo",
"clean": "git clean -xdf node_modules dist .next",
"clean:workspaces": "turbo clean",
"dev": "cross-env FORCE_COLOR=1 turbo dev --parallel",
"format": "turbo format --cache-dir=.turbo --continue -- --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"",
"format:fix": "turbo format --cache-dir=.turbo --continue -- --write --cache --cache-location=\"node_modules/.cache/.prettiercache\" --ignore-path=\"../../.gitignore\"",
"lint": "turbo lint --cache-dir=.turbo --affected --continue -- --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg check",
"lint:fix": "turbo lint --cache-dir=.turbo --affected --continue -- --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" && manypkg fix",
"typecheck": "turbo typecheck --affected --cache-dir=.turbo",
"test": "turbo test --cache-dir=.turbo",
"update": "pnpm update -r",
"syncpack:list": "pnpm dlx syncpack list-mismatches",
"syncpack:fix": "pnpm dlx syncpack fix-mismatches",
"supabase:web:start": "pnpm --filter web supabase:start",
"supabase:web:stop": "pnpm --filter web supabase:stop",
"supabase:web:typegen": "pnpm --filter web supabase:typegen",
"supabase:web:reset": "pnpm --filter web supabase:reset",
"supabase:web:test": "pnpm --filter web supabase:test",
"stripe:listen": "pnpm --filter '@kit/stripe' start",
"env:generate": "turbo gen env",
"env:validate": "turbo gen validate-env"
},
"prettier": "@kit/prettier-config",
"packageManager": "pnpm@10.19.0",
"pnpm": {
"overrides": {
"zod": "3.25.76"
}
},
"devDependencies": {
"@manypkg/cli": "^0.25.1",
"@turbo/gen": "^2.7.0",
"cross-env": "^10.0.0",
"prettier": "^3.7.4",
"turbo": "2.7.3",
"typescript": "^5.9.3"
}
}