pub struct EmailOtpService<S> { /* private fields */ }Expand description
Email OTP authentication — issues a short-lived one-time code (token) that the caller sends to the user’s email address.
§Flow
issue(email)→ raw token (send in email). ReturnsNonefor unknown emails. Rate-limited to [ISSUE_RATE_MAX] requests per email per 10-minute window.verify(raw_token, ip)→ session created,EmailOtpVerifyResponsereturned.
Implementations§
Source§impl<S> EmailOtpService<S>
impl<S> EmailOtpService<S>
Auto Trait Implementations§
impl<S> Freeze for EmailOtpService<S>where
S: Freeze,
impl<S> !RefUnwindSafe for EmailOtpService<S>
impl<S> Send for EmailOtpService<S>where
S: Send,
impl<S> Sync for EmailOtpService<S>where
S: Sync,
impl<S> Unpin for EmailOtpService<S>where
S: Unpin,
impl<S> UnsafeUnpin for EmailOtpService<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for EmailOtpService<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more