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