google forwardref button

This commit is contained in:
peintnermax
2023-07-27 11:05:42 +02:00
parent 4116f99e68
commit 0471307564
10 changed files with 95 additions and 59 deletions

View File

@@ -25,6 +25,8 @@ import {
LoginSettings,
GetLoginSettingsResponse,
ListAuthenticationMethodTypesResponse,
StartIdentityProviderFlowRequest,
StartIdentityProviderFlowResponse,
} from "@zitadel/server";
export const zitadelConfig: ZitadelServerOptions = {
@@ -195,6 +197,19 @@ export async function addHumanUser(
});
}
export async function startIdentityProviderFlow(
server: ZitadelServer,
{ idpId, successUrl, failureUrl }: StartIdentityProviderFlowRequest
): Promise<StartIdentityProviderFlowResponse> {
const userService = user.getUser(server);
return userService.startIdentityProviderFlow({
idpId,
successUrl,
failureUrl,
});
}
export async function verifyEmail(
server: ZitadelServer,
userId: string,