feat: add editorial approval and account guards

This commit is contained in:
Leon Tonhäuser committed 2026-08-09 21:15:30 +02:00
1 parent a8d4e54ffb
commit 3584b4a7a7
9 files changed
+878 -1

No files matched your search

+5 -1
View File
@@ -18,7 +18,11 @@ export type MailTransport = {
export type Mailer = {
sendVerification(input: { to: string; verificationUrl: string }): Promise<void>;
sendPasswordReset(input: { to: string; resetUrl: string }): Promise<void>;
sendApprovalNotice(input: { to: string; editorialName: string }): Promise<void>;
sendApprovalNotice(input: {
to: string;
editorialName: string;
editorialId?: string;
}): Promise<void>;
};
export function createMailer({ from, transport }: { from: string; transport: MailTransport }): Mailer {