Recommended: JavaScript SDK with React Hooks
For new React apps, we recommend the JavaScript SDK with React Hooks (
@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.Before implementing MFA in your application, configure MFA settings in the dashboard. See End-User MFA for enrollment and enforcement (session-based and/or action-based), configuration options, and dashboard setup.
MFA Enrollment
Learn how to implement MFA enrollment (registering a TOTP device or Passkey).
Action-based enforcement
Learn how to implement action-based enforcement (MFA for sensitive actions).
Step-up authentication
Step-up auth (the broader category) requires re-verification before sensitive actions; MFA is one way to satisfy it. This guide uses the useStepUpAuthentication hook.