linking with userid

This commit is contained in:
Max Peintner
2024-12-16 10:14:38 +01:00
parent b93f00d124
commit 8c9302250e

View File

@@ -179,12 +179,14 @@ export default async function Page(props: {
);
});
return linkingSuccess(
userId,
{ idpIntentId: id, idpIntentToken: token },
authRequestId,
branding,
);
if (idpLink) {
return linkingSuccess(
idpInformation.userId,
{ idpIntentId: id, idpIntentToken: token },
authRequestId,
branding,
);
}
}
}