mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
43e062d1ac
* CW-263-TOTP-2FA-in-security-settings WIP * Implement TOTP 2FA WIP * Implement TOTP 2FA Authentication * chore: Remove unneeded formatting * revert formatting * fixes * CW-263-TOTP-2FA-in-security-settings WIP * Setup TOTP Complete, left with Modify TOTF * CW-263-TOTP-2FA-in-security-settings * CW-263-TOTP-2FA-in-security-settings * CW-263-TOTP-2FA-in-security-settings * fix: Add copy-to-clipboard for qr secret key * fix: Translation * chore: Move strings into translation files * feat: End to end flow for TOTP * hotfix: Switch totp to use sha512 * Update strings; 8 digits and error explanation * fix: Totp 2fa implementation feedback * hotfix: same action for button and alert close * feat: App should show both normal and totp auths when totp is enabled * hotfix: prevent barrier from dismissing * fix: Changes requested during PR review * - Minor Enhancements - Minor UI fixes --------- Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com> Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
53 lines
2.9 KiB
Dart
53 lines
2.9 KiB
Dart
class PreferencesKey {
|
|
static const currentWalletType = 'current_wallet_type';
|
|
static const currentWalletName = 'current_wallet_name';
|
|
static const currentNodeIdKey = 'current_node_id';
|
|
static const currentBitcoinElectrumSererIdKey = 'current_node_id_btc';
|
|
static const currentLitecoinElectrumSererIdKey = 'current_node_id_ltc';
|
|
static const currentHavenNodeIdKey = 'current_node_id_xhv';
|
|
static const currentFiatCurrencyKey = 'current_fiat_currency';
|
|
static const currentTransactionPriorityKeyLegacy = 'current_fee_priority';
|
|
static const currentBalanceDisplayModeKey = 'current_balance_display_mode';
|
|
static const shouldSaveRecipientAddressKey = 'save_recipient_address';
|
|
static const isAppSecureKey = 'is_app_secure';
|
|
static const disableBuyKey = 'disable_buy';
|
|
static const disableSellKey = 'disable_sell';
|
|
static const currentFiatApiModeKey = 'current_fiat_api_mode';
|
|
static const allowBiometricalAuthenticationKey =
|
|
'allow_biometrical_authentication';
|
|
static const useTOTP2FA = 'use_totp_2fa';
|
|
static const failedTotpTokenTrials = 'failed_token_trials';
|
|
static const totpSecretKey = 'totp_qr_secret_key';
|
|
static const disableExchangeKey = 'disable_exchange';
|
|
static const exchangeStatusKey = 'exchange_status';
|
|
static const currentTheme = 'current_theme';
|
|
static const isDarkThemeLegacy = 'dark_theme';
|
|
static const displayActionListModeKey = 'display_list_mode';
|
|
static const currentPinLength = 'current_pin_length';
|
|
static const currentLanguageCode = 'language_code';
|
|
static const currentDefaultSettingsMigrationVersion =
|
|
'current_default_settings_migration_version';
|
|
static const moneroTransactionPriority = 'current_fee_priority_monero';
|
|
static const bitcoinTransactionPriority = 'current_fee_priority_bitcoin';
|
|
static const havenTransactionPriority = 'current_fee_priority_haven';
|
|
static const litecoinTransactionPriority = 'current_fee_priority_litecoin';
|
|
static const shouldShowReceiveWarning = 'should_show_receive_warning';
|
|
static const shouldShowYatPopup = 'should_show_yat_popup';
|
|
static const moneroWalletPasswordUpdateV1Base = 'monero_wallet_update_v1';
|
|
static const pinTimeOutDuration = 'pin_timeout_duration';
|
|
static const lastAuthTimeMilliseconds = 'last_auth_time_milliseconds';
|
|
static const lastPopupDate = 'last_popup_date';
|
|
static const lastAppReviewDate = 'last_app_review_date';
|
|
|
|
|
|
|
|
static String moneroWalletUpdateV1Key(String name)
|
|
=> '${PreferencesKey.moneroWalletPasswordUpdateV1Base}_${name}';
|
|
|
|
static const exchangeProvidersSelection = 'exchange-providers-selection';
|
|
static const clearnetDonationLink = 'clearnet_donation_link';
|
|
static const onionDonationLink = 'onion_donation_link';
|
|
static const lastSeenAppVersion = 'last_seen_app_version';
|
|
static const shouldShowMarketPlaceInDashboard = 'should_show_marketplace_in_dashboard';
|
|
static const isNewInstall = 'is_new_install';
|
|
}
|