UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

26 lines (23 loc) 778 B
'use client' import { MFADeviceType } from '@dynamic-labs/sdk-api-core'; const getMfaOptions = (isInitialSetup) => { const mfaOptions = [ { Icon: undefined, descriptionKey: 'dyn_mfa.choose_device_view.authenticator_app_description', labelKey: 'dyn_mfa.choose_device_view.authenticator_app', type: MFADeviceType.Totp, }, ]; if (!isInitialSetup) { const backupCodeOption = { Icon: undefined, descriptionKey: 'dyn_mfa.choose_device_view.backup_code_description', labelKey: 'dyn_mfa.choose_device_view.backup_code', type: 'backupCode', }; mfaOptions.push(backupCodeOption); } return mfaOptions; }; export { getMfaOptions };