POWR/lib/auth/constants.ts
DocNR c441c5afa5 feat(profile): Improve profile loading performance with tiered display system
- Add ultra-early content display after just 500ms with ANY data available
- Implement progressive content loading with three-tier timeout system
- Reduce timeouts from 5s to 4s on Android and 4s to 3s on iOS
- Enhance render state logic to prioritize partial content display
- Improve parallel data loading for all profile elements
- Add multiple fallback timers to ensure content always displays
- Update CHANGELOG.md with detailed performance improvements

This commit dramatically improves perceived performance by showing content
as soon as it becomes available rather than waiting for complete data load.
2025-04-04 22:43:03 -04:00

19 lines
499 B
TypeScript

/**
* Auth-related constants used throughout the authentication system
*/
/**
* SecureStore keys for storing authentication-related data
* Using constants ensures consistent keys across the app
*/
export const SECURE_STORE_KEYS = {
PRIVATE_KEY: 'nostr_privkey', // Changed to match ndk.ts store key
EXTERNAL_SIGNER: 'nostr_external_signer',
PUBKEY: 'nostr_pubkey'
};
/**
* Authentication methods supported by the app
*/
export type AuthMethod = 'private_key' | 'amber' | 'ephemeral';