auth
This commit is contained in:
20
core/identity/domain/ports/IMagicLinkNotificationPort.ts
Normal file
20
core/identity/domain/ports/IMagicLinkNotificationPort.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user