mfa selection, setup page

This commit is contained in:
peintnermax
2024-04-12 16:38:38 +02:00
parent 57e4585120
commit 437ba4375f
7 changed files with 89 additions and 43 deletions

View File

@@ -1,4 +1,6 @@
import {
LegalAndSupportSettings,
PasswordComplexitySettings,
ZitadelServer,
ZitadelServerOptions,
user,
@@ -15,8 +17,6 @@ import {
AddHumanUserResponse,
BrandingSettings,
ListSessionsResponse,
LegalAndSupportSettings,
PasswordComplexitySettings,
GetSessionResponse,
VerifyEmailResponse,
Checks,
@@ -40,6 +40,7 @@ import {
CreateCallbackResponse,
RequestChallenges,
TextQueryMethod,
ListHumanAuthFactorsResponse,
AddHumanUserRequest,
} from "@zitadel/server";
@@ -257,6 +258,14 @@ export async function addHumanUser(
);
}
export async function listHumanAuthFactors(
server: ZitadelServer,
userId: string
): Promise<ListHumanAuthFactorsResponse> {
const managementService = management.getManagement(server);
return managementService.listHumanAuthFactors({ userId }, {});
}
export async function listUsers(
userName: string,
organizationId: string