mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
21 lines
459 B
TypeScript
21 lines
459 B
TypeScript
"use server";
|
|
|
|
import { resendEmailCode, verifyEmail } from "@/lib/zitadel";
|
|
|
|
type VerifyUserByEmailCommand = {
|
|
userId: string;
|
|
code: string;
|
|
};
|
|
|
|
export async function verifyUserByEmail(command: VerifyUserByEmailCommand) {
|
|
return verifyEmail(command.userId, command.code);
|
|
}
|
|
|
|
type resendVerifyEmailCommand = {
|
|
userId: string;
|
|
};
|
|
|
|
export async function resendVerifyEmail(command: resendVerifyEmailCommand) {
|
|
return resendEmailCode(command.userId);
|
|
}
|