MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getUnsubscribeUrl

Function getUnsubscribeUrl

packages/email/src/unsubscribe.ts:34–39  ·  view source on GitHub ↗
(email: string, category: string)

Source from the content-addressed store, hash-verified

32}
33
34export function getUnsubscribeUrl(email: string, category: string): string {
35 const token = generateUnsubscribeToken(email, category);
36 const params = new URLSearchParams({ email, category, token });
37 const dashboardUrl = process.env.DASHBOARD_URL || 'http://localhost:3000';
38 return `${dashboardUrl}/unsubscribe?${params.toString()}`;
39}

Callers 1

sendEmailFunction · 0.90

Calls 2

generateUnsubscribeTokenFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected