diff --git a/apps/login/src/app/(login)/idp/[provider]/success/page.tsx b/apps/login/src/app/(login)/idp/[provider]/success/page.tsx index 59f2bba2..4f7ad163 100644 --- a/apps/login/src/app/(login)/idp/[provider]/success/page.tsx +++ b/apps/login/src/app/(login)/idp/[provider]/success/page.tsx @@ -56,6 +56,32 @@ async function loginSuccess( ); } +async function linkingSuccess( + userId: string, + idpIntent: { idpIntentId: string; idpIntentToken: string }, + authRequestId?: string, + branding?: BrandingSettings, +) { + const locale = getLocale(); + const t = await getTranslations({ locale, namespace: "idp" }); + + return ( + + + {t("linkingSuccess.title")} + + {t("linkingSuccess.description")} + + + + + ); +} + export default async function Page(props: { searchParams: Promise>; params: Promise<{ provider: string }>; @@ -153,7 +179,7 @@ export default async function Page(props: { ); }); - return loginSuccess( + return linkingSuccess( userId, { idpIntentId: id, idpIntentToken: token }, authRequestId,