Files
zitadel/apps/login/src/lib/server/email.ts

21 lines
459 B
TypeScript
Raw Normal View History

"use server";
import { resendEmailCode, verifyEmail } from "@/lib/zitadel";
type VerifyUserByEmailCommand = {
userId: string;
code: string;
};
export async function verifyUserByEmail(command: VerifyUserByEmailCommand) {
2024-09-05 13:38:03 +02:00
return verifyEmail(command.userId, command.code);
}
type resendVerifyEmailCommand = {
userId: string;
};
export async function resendVerifyEmail(command: resendVerifyEmailCommand) {
2024-09-05 13:38:03 +02:00
return resendEmailCode(command.userId);
}