1 | import { NbAuthToken } from './token';
|
2 | import { NbAuthTokenParceler } from './token-parceler';
|
3 | import * as i0 from "@angular/core";
|
4 | export declare abstract class NbTokenStorage {
|
5 | abstract get(): NbAuthToken;
|
6 | abstract set(token: NbAuthToken): any;
|
7 | abstract clear(): any;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare class NbTokenLocalStorage extends NbTokenStorage {
|
25 | private parceler;
|
26 | protected key: string;
|
27 | constructor(parceler: NbAuthTokenParceler);
|
28 | /**
|
29 | * Returns token from localStorage
|
30 | * @returns {NbAuthToken}
|
31 | */
|
32 | get(): NbAuthToken;
|
33 | |
34 |
|
35 |
|
36 |
|
37 | set(token: NbAuthToken): void;
|
38 | |
39 |
|
40 |
|
41 | clear(): void;
|
42 | static ɵfac: i0.ɵɵFactoryDeclaration<NbTokenLocalStorage, never>;
|
43 | static ɵprov: i0.ɵɵInjectableDeclaration<NbTokenLocalStorage>;
|
44 | }
|