pub struct VerifyTotp(/* private fields */);Expand description
POST /two-factor/verify-totp: checks an authenticator code. Finishes a pending sign-in,
or, for a signed-in user, turns two-factor on the first time.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for VerifyTotp
impl<D: Adapter> Endpoint<D> for VerifyTotp
const METHOD: Method = Method::POST
const PATH: &'static str = "/two-factor/verify-totp"
type Access = MaybeAuthenticated
type Input = VerifyInput
type Output = VerifyOutput
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: VerifyInput, ) -> Result<VerifyOutput, AuthError>
Auto Trait Implementations§
impl Forget for VerifyTotp
impl Freeze for VerifyTotp
impl Move for VerifyTotp
impl RefUnwindSafe for VerifyTotp
impl Send for VerifyTotp
impl Sync for VerifyTotp
impl Unpin for VerifyTotp
impl UnsafeUnpin for VerifyTotp
impl UnwindSafe for VerifyTotp
Blanket Implementations§
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