diff --git a/apps/web/modules/auth/verification-requested/page.tsx b/apps/web/modules/auth/verification-requested/page.tsx index bd1c5eef1b..fd3dcf6114 100644 --- a/apps/web/modules/auth/verification-requested/page.tsx +++ b/apps/web/modules/auth/verification-requested/page.tsx @@ -6,8 +6,9 @@ import { ZUserEmail } from "@formbricks/types/user"; export const VerificationRequestedPage = async ({ searchParams }) => { const t = await getTranslations(); + const { token } = await searchParams; try { - const email = getEmailFromEmailToken(searchParams.token); + const email = getEmailFromEmailToken(token); const parsedEmail = ZUserEmail.safeParse(email); if (parsedEmail.success) { return ( diff --git a/apps/web/modules/auth/verify/page.tsx b/apps/web/modules/auth/verify/page.tsx index 19319d2bf8..2975507889 100644 --- a/apps/web/modules/auth/verify/page.tsx +++ b/apps/web/modules/auth/verify/page.tsx @@ -4,10 +4,12 @@ import { getTranslations } from "next-intl/server"; export const VerifyPage = async ({ searchParams }) => { const t = await getTranslations(); - return searchParams && searchParams.token ? ( + const { token } = await searchParams; + + return token ? (

{t("auth.verify.verifying")}

- +
) : (

{t("auth.verify.no_token_provided")}