You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer, I want to extend the format used by the OtpService without modifying the existing classes so that I can introduce my custom name, generator, template and, notification as a group.
For example:
useErdemkeren\Otp\OtpToken;
use \Erdemkeren\Otp\OtpFacadeasOtp;
use \Erdemkeren\Otp\GenericFormat;
useApp\OtpFormats\AcmeFormat\AcmeFormat;
Otp::addFormat(newAcmeFormat());
// Or on the fly:
Otp::addFormat(newGenericFormat(
'acme',
fn(): string => ':generator:',
fn(OtpToken$otpToken): TokenNotification => newTokenNotification($token),
));
The text was updated successfully, but these errors were encountered:
As a developer, I want to extend the format used by the OtpService without modifying the existing classes so that I can introduce my custom name, generator, template and, notification as a group.
For example:
The text was updated successfully, but these errors were encountered: