@anderson.tec12/utils
Version:
[](https://badge.fury.io/js/%40anderson.tec12%2Futils) [](https://opensource.org/licenses/MIT)
14 lines (13 loc) • 364 B
TypeScript
declare class SecureStorage {
private secret;
private encoder;
private decoder;
constructor(secret: string);
private getKey;
setItem(key: string, value: any): Promise<void>;
getItem<T>(key: string): Promise<T | null>;
removeItem(key: string): void;
clear(): void;
}
export declare const secureStorage: SecureStorage;
export {};