Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: Expired-state branch likely unreachable with current API status.
Marc Seitzba8e431e62b3
diff --git a/app/(auth)/auth/email/[[...params]]/page-client.tsx b/app/(auth)/auth/email/[[...params]]/page-client.tsxindex f98f9307..5991d2af 100644--- a/app/(auth)/auth/email/[[...params]]/page-client.tsx+++ b/app/(auth)/auth/email/[[...params]]/page-client.tsx@@ -60,7 +60,12 @@ export default function EmailVerificationClient() {const data = await response.json();if (!response.ok) {- if (response.status === 410 || data.error?.includes("expired")) {+ if (+ response.status === 410 ||+ response.status === 401 ||+ data.error?.includes("expired") ||+ data.error?.includes("Invalid code")+ ) {setIsExpired(true);setError("This code has expired or is invalid.");} else if (response.status === 429) {