Skip to main content
Result object returned by useMfaPolling.

Properties

isRunning
boolean
Indicates whether the MFA push polling process is currently active.
  • true — Polling is running and awaiting completion.
  • false — Polling has stopped, either due to completion, manual cancellation, or component unmount.
startPolling()
void
Starts or resumes the polling process.
  • If polling is already active, this call has no effect.
  • If previously stopped, calling this restarts the polling loop.
stopPolling()
void
Stops the polling process immediately.
  • Cancels any scheduled timers or in-flight requests.
  • Safe to call multiple times; subsequent calls have no effect.