Skip to main content
function useVerifyMfaContext(): VerifyMfaContextValue;
Hook to access the VerifyMfa context.

Returns

VerifyMfaContextValue The current state and dispatch function of the VerifyMfa component.

See

VerifyMfa

Example

function MfaCodeDisplay() {
  const { state } = useVerifyMfaContext();
  return <div>Code: {state.mfaCode}</div>;
}