Skip to main content

Module email_otp

Module email_otp 

Source
Expand description

Passwordless email authentication and verification using single-use codes.

EmailOtpPlugin::create_verification_otp and EmailOtpPlugin::get_verification_otp are server-only operations. Neither operation registers an HTTP endpoint.

Structs§

EmailOtpConfig
Configuration for email OTP verification, login, password reset and email change.
EmailOtpDelivery
Delivery data. Debug intentionally omits the authentication secret.
EmailOtpPlugin
EmailOtpRead

Enums§

EmailOtpStorage
EmailOtpType
Code scope. Codes issued for one operation cannot authorize another.
OtpResendStrategy

Traits§

EmailOtpCodec
Application-owned codec for custom hash/encryption storage. retrieve returns None when the representation is intentionally irreversible.
EmailOtpGenerator
Optional application code generator. Returning None selects the default cryptographically random numeric generator.
SendEmailOtp
Delivers a code to its intended mailbox with the real native callback context. Delivery awaits and propagates errors by default; configured background work owns its context and logs failures while retaining the issued verification.