Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

change cookie name

Steven Tey55557141f47f
diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts
index cdb2dd934e..0eaf7ebde0 100644
--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts
+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts
@@ -19,7 +19,7 @@ export async function verifyPassword(_prevState: any, data: FormData) {
return { error: "Invalid password" };
}
- cookies().set(`dub_dash_${dashboardId}`, password, {
+ cookies().set(`dub_${dashboardId}`, password, {
path: "/",
httpOnly: true,
secure: true,
diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
index 4234522d9b..8cc1aa93cb 100644
--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
@@ -44,7 +44,7 @@ export default async function dashboardPage({
if (
data.password &&
- cookies().get(`dub_dash_${params.dashboardId}`)?.value !== data.password
+ cookies().get(`dub_${params.dashboardId}`)?.value !== data.password
) {
return (
<main className="flex h-screen w-screen items-center justify-center">