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.

update EMBED_PUBLIC_TOKEN_EXPIRY

Kiran Kdb0e4fd70275
diff --git a/apps/web/lib/embed/constants.ts b/apps/web/lib/embed/constants.ts
index 039038f321..c0113f441b 100644
--- a/apps/web/lib/embed/constants.ts
+++ b/apps/web/lib/embed/constants.ts
@@ -6,5 +6,5 @@ export const REFERRAL_REVENUE_SHARE = 0.2;
// Embed public token
export const EMBED_PUBLIC_TOKEN_PREFIX = "dub_embed_";
export const EMBED_PUBLIC_TOKEN_LENGTH = 36;
-export const EMBED_PUBLIC_TOKEN_EXPIRY = 6 * 60 * 60; // 6 hours
+export const EMBED_PUBLIC_TOKEN_EXPIRY = 24 * 60 * 60; // 24 hours
export const EMBED_PUBLIC_TOKEN_COOKIE_NAME = "embed_public_token";