mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:42:17 +00:00
idp linking
This commit is contained in:
@@ -24,10 +24,8 @@ export default async function Page({
|
||||
return retrieveIDPIntent(id, token)
|
||||
.then((resp) => {
|
||||
const { idpInformation, userId } = resp;
|
||||
console.log("provider", provider, idpInformation, "userId", userId);
|
||||
|
||||
if (idpInformation) {
|
||||
// handle login
|
||||
if (userId) {
|
||||
return (
|
||||
<DynamicTheme branding={branding}>
|
||||
@@ -44,7 +42,6 @@ export default async function Page({
|
||||
</DynamicTheme>
|
||||
);
|
||||
} else {
|
||||
// handle register
|
||||
return createUser(provider, idpInformation)
|
||||
.then((userId) => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user