feat(vault): show mnemonic flow will show at first time ; or user reset vault state;
This commit is contained in:
@@ -27,7 +27,7 @@ export const DEBUG_MODE = true;
|
||||
/**
|
||||
* Base URL for the backend API server
|
||||
*/
|
||||
export const API_BASE_URL = 'http://192.168.56.103:8000';
|
||||
export const API_BASE_URL = 'http://localhost:8000';
|
||||
|
||||
/**
|
||||
* API request timeout in milliseconds
|
||||
@@ -64,6 +64,20 @@ export const API_ENDPOINTS = {
|
||||
},
|
||||
} as const;
|
||||
|
||||
/**
|
||||
* Vault storage key names (AsyncStorage keys only — not user-editable "initial values").
|
||||
* - These are constants: the key names used to read/write/remove vault state in AsyncStorage.
|
||||
* - The actual stored values (S0 data, '1') are set by the app; do not change these key strings
|
||||
* unless you are migrating storage (changing them would make existing data unfindable).
|
||||
* - Placed in config so VaultScreen and MeScreen (and others) use the same keys in one place.
|
||||
* - INITIALIZED: app sets to '1' after first mnemonic flow; SHARE_DEVICE: app stores serialized S0.
|
||||
* - "Reset Vault State" = remove both keys; next vault open sees no S0 and shows mnemonic flow.
|
||||
*/
|
||||
export const VAULT_STORAGE_KEYS = {
|
||||
INITIALIZED: 'sentinel_vault_initialized',
|
||||
SHARE_DEVICE: 'sentinel_vault_s0',
|
||||
} as const;
|
||||
|
||||
// =============================================================================
|
||||
// Helper Functions
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user