diff --git a/src/composables/auth.ts b/src/composables/auth.ts index 10faabaa7..1067fbb49 100644 --- a/src/composables/auth.ts +++ b/src/composables/auth.ts @@ -10,7 +10,7 @@ import { generateMnemonic, mnemonicToSeed, validateMnemonic } from '@aeternity/b import { tg as t } from '@/popup/plugins/i18n'; import { - AUTHENTICATION_TIMEOUT_DEFAULT, + AUTHENTICATION_TIMEOUTS, IS_EXTENSION, IS_IOS, IS_MOBILE_APP, @@ -44,6 +44,9 @@ import { useModals } from './modals'; import { useStorageRef } from './storageRef'; const CHECK_FOR_SESSION_KEY_INTERVAL = 5000; +const AUTHENTICATION_TIMEOUT_DEFAULT = (IS_MOBILE_APP) + ? AUTHENTICATION_TIMEOUTS[0] + : AUTHENTICATION_TIMEOUTS[2]; /** * Top level composable that controls if user is allowed to interact with the wallet. diff --git a/src/constants/common.ts b/src/constants/common.ts index 0469a655c..0d9ccd3c5 100644 --- a/src/constants/common.ts +++ b/src/constants/common.ts @@ -1,5 +1,4 @@ -import type { ICurrency, IAppData, IPermission } from '@/types'; -import { IS_MOBILE_APP } from './environment'; +import type { IAppData, ICurrency, IPermission } from '@/types'; export const APP_NAME = 'Superhero Wallet'; export const APP_URL = 'wallet.superhero.com'; @@ -503,10 +502,6 @@ export const AUTHENTICATION_TIMEOUTS = [ 1800000, ] as const; -export const AUTHENTICATION_TIMEOUT_DEFAULT = (IS_MOBILE_APP) - ? AUTHENTICATION_TIMEOUTS[0] - : AUTHENTICATION_TIMEOUTS[2]; - export const PASSWORD_STRENGTH = { weak: 'weak', medium: 'medium',