This commit is contained in:
2025-12-31 19:55:43 +01:00
parent 8260bf7baf
commit 167e82a52b
66 changed files with 5124 additions and 228 deletions

View File

@@ -0,0 +1,20 @@
/**
* Port for sending magic link notifications
* In production, this would send emails
* In development, it can log to console or return the link
*/
export interface MagicLinkNotificationInput {
email: string;
magicLink: string;
userId: string;
expiresAt: Date;
}
export interface IMagicLinkNotificationPort {
/**
* Send a magic link notification to the user
* @param input - The notification data
* @returns Promise<void>
*/
sendMagicLink(input: MagicLinkNotificationInput): Promise<void>;
}