Interface IMfaDeliveryChannel

Assembly: redb.Identity.Core.dll

SPI for delivering MFA codes via external channels (SMS, Email).

public interface IMfaDeliveryChannel

Properties

ChannelId

Channel identifier matching : "sms", "email".

string ChannelId { get; }

DisplayName

Human-readable display name (e.g. "SMS", "Email").

string DisplayName { get; }

Methods

SendCodeAsync(string, string, CancellationToken)

Sends the OTP code to the destination.

Task SendCodeAsync(string destination, string code, CancellationToken ct = default)

Remarks

Implementations are provided by external packages (e.g. redb.Identity.Sms, redb.Identity.Email)
or registered by the host application. Core defines only the contract.