diff --git a/apps/login/app/(login)/register/idp/page.tsx b/apps/login/app/(login)/register/idp/page.tsx index 20a87894..3a997321 100644 --- a/apps/login/app/(login)/register/idp/page.tsx +++ b/apps/login/app/(login)/register/idp/page.tsx @@ -22,13 +22,10 @@ function getIdentityProviders( }); } -export default async function Page({ - searchParams, -}: { - searchParams: Record; -}) { +export default async function Page() { const legal = await getLegalAndSupportSettings(server); + // TODO if org idps should be shown replace emptystring with the orgId. const identityProviders = await getIdentityProviders(server, ""); const host = process.env.VERCEL_URL diff --git a/apps/login/ui/SignInWithIDP.tsx b/apps/login/ui/SignInWithIDP.tsx index e11cc5dd..da6afae1 100644 --- a/apps/login/ui/SignInWithIDP.tsx +++ b/apps/login/ui/SignInWithIDP.tsx @@ -9,6 +9,7 @@ import { } from "@zitadel/react"; import { useRouter } from "next/navigation"; import { ProviderSlug } from "#/lib/demos"; +import Alert from "./Alert"; export interface SignInWithIDPProps { children?: ReactNode; @@ -117,6 +118,11 @@ export function SignInWithIDP({ return null; } })} + {error && ( +
+ {error} +
+ )} ); }