This commit is contained in:
Max Peintner
2024-12-23 09:35:07 +01:00
parent d3111d3ba3
commit 2bb46137ce

View File

@@ -73,7 +73,6 @@ export default async function Page(props: {
const providerType = idpTypeToIdentityProviderType(idp.type);
if (link && options?.isLinkingAllowed) {
console.log(userId);
let idpLink;
try {
idpLink = await addIDPLink(
@@ -85,12 +84,10 @@ export default async function Page(props: {
userId,
);
} catch (error) {
console.error(error);
return linkingFailed(branding);
}
if (!idpLink) {
console.log("linking failed");
return linkingFailed(branding);
} else {
return linkingSuccess(
@@ -140,7 +137,6 @@ export default async function Page(props: {
foundUser.userId,
);
} catch (error) {
console.error(error);
return linkingFailed(branding);
}