@bixi/auth
Version:
17 lines (16 loc) • 540 B
TypeScript
import { ITokenModel } from '../token/interface';
import { IStore } from './interface';
/**
* `cookie` storage, muse be install
* [js-cookie](https://github.com/js-cookie/js-cookie) library
* and import `"node_modules/js-cookie/src/js.cookie.js"` in `angular.json`
*
* ```ts
* { provide: BIXI_STORE_TOKEN, useClass: CookieStorageStore }
* ```
*/
export declare class CookieStorageStore implements IStore {
get(key: string): ITokenModel;
set(key: string, value: ITokenModel | null): boolean;
remove(key: string): void;
}