UNPKG

@yelon/auth

Version:

Simple user authentication, support Json Web Token & Simple Token.

9 lines (8 loc) 304 B
import { InjectionToken } from '@angular/core'; import { ITokenModel } from '../token/interface'; export declare const YA_STORE_TOKEN: InjectionToken<IStore>; export interface IStore { get(key: string): ITokenModel; set(key: string, value: ITokenModel): boolean; remove(key: string): void; }