UNPKG

@dynamic-labs/sdk-react-core

Version:

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

30 lines (25 loc) 877 B
'use client' 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var sdkApiCore = require('@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: sdkApiCore.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; }; exports.getMfaOptions = getMfaOptions;