Summary

This hook provides a way for clients to prompt the user to authenticate with MFA via the Dynamic UI. The hook needs to be initialized within a child of DynamicContextProvider.

Usage

Available methods:
  • promptMfaAuth: Prompt the user to authenticate with MFA via the Dynamic UI.

Usage

import { usePromptMfaAuth } from '@dynamic-labs/sdk-react-core';

const App = () => {
  const promptMfaAuth = usePromptMfaAuth();

  return (
    <button
      onClick={() => promptMfaAuth()}
    >
      Prompt MFA
    </button>
  );
};