angular-auth-oidc-client
Version:
Angular Lib for OpenID Connect & OAuth2
32 lines (31 loc) • 1.05 kB
TypeScript
import * as i0 from "@angular/core";
/**
* 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;
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSecurityStorage, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AbstractSecurityStorage>;
}