This commit is contained in:
peintnermax
2023-08-02 10:19:27 +02:00
parent 4164fc00dd
commit 983cbeb222

View File

@@ -33,7 +33,9 @@ export function SignInWithIDP({
const router = useRouter(); const router = useRouter();
async function startFlow(idpId: string, provider: ProviderSlug) { async function startFlow(idpId: string, provider: ProviderSlug) {
const host = process.env.VERCEL_URL ?? "http://localhost:3000"; const host = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";
setLoading(true); setLoading(true);
// const path = startIDPFlowPath(idpId); // const path = startIDPFlowPath(idpId);