get email and phone from user resource

This commit is contained in:
peintnermax
2024-04-17 15:19:19 +02:00
parent 346f13e38d
commit c4a6af4061
3 changed files with 51 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import { RegisterTOTPResponse } from "@zitadel/server";
import { GetUserByIDResponse, RegisterTOTPResponse } from "@zitadel/server";
import {
LegalAndSupportSettings,
PasswordComplexitySettings,
@@ -302,6 +302,14 @@ export async function addHumanUser(
);
}
export async function getUserByID(
userId: string
): Promise<GetUserByIDResponse> {
const userService = user.getUser(server);
return userService.getUserByID({ userId }, {});
}
export async function listHumanAuthFactors(
server: ZitadelServer,
userId: string