userScopedStorage Utility
File: src/utils/userScopedStorage.ts
Overview
Exports
- userStorage - const export
Classes
UserScopedStorage
No description available.
Methods:
initializecatchsetCurrentUsergetCurrentUserclearCurrentUserclearUserDatagetUserKeykeysetItemgetItemremoveItemhasItemgetUserKeysclearAll
Properties:
currentUserIdwarnedKeyssessionstoredUserIduserstoragesetusersuserIdIDnullkeysToRemoveikeykeysdatalogsvalueuserKeyerrorprefix
Constants
STORAGE_PREFIX
No description available.
typescript
const STORAGE_PREFIX = 'harmony_'USER_ID_KEY
No description available.
typescript
const USER_ID_KEY = `${STORAGE_PREFIX}current_user_id`USER_DATA_PREFIX
No description available.
typescript
const USER_DATA_PREFIX = `${STORAGE_PREFIX}user_`Source Code Insights
File Size: 6323 characters Lines of Code: 237 Imports: 1
Usage Example
typescript
import { userStorage } from '@/utils/userScopedStorage'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
