oidc-client-rx
Version:
ReactiveX enhanced OIDC and OAuth2 protocol support for browser-based JavaScript applications
29 lines • 913 B
TypeScript
/**
* Implement this class-interface to create a custom storage.
*/
export declare abstract class AbstractSecurityStorage {
/**
* This method must contain the logic to read the storage.
*
* @return The value of the given key
*/
abstract read(key: string): string | null;
/**
* This method must contain the logic to write the storage.
*
* @param key The key to write a value for
* @param value The value for the given key
*/
abstract write(key: string, value: string): void;
/**
* This method must contain the logic to remove an item from the storage.
*
* @param key The value for the key to be removed
*/
abstract remove(key: string): void;
/**
* This method must contain the logic to remove all items from the storage.
*/
abstract clear(): void;
}
//# sourceMappingURL=abstract-security-storage.d.ts.map