mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-13 02:08:18 +00:00
get email and phone from user resource
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user