@esolve/ng-esolve-connect 0.29.5 → 0.29.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,10 +13,12 @@ export declare class EsolveAuthService {
13
13
  private errorHandler;
14
14
  private cookieService;
15
15
  constructor(config: EsolveConnectConfig, http: HttpClient, session: EsolveSessionService, errorHandler: EsolveErrorHandlerService, cookieService: EsolveCookieService);
16
+ static preValidate(auth: EsolveAuthService): () => Promise<boolean>;
16
17
  getAccessToken(email: string, password: string, anonymous?: boolean): Observable<EsolveAuthGetResponse>;
17
- autoLogin(): void;
18
+ autoLogin(): Promise<void>;
18
19
  login(email: string, password: string): Observable<number>;
19
20
  logout(): Promise<EsolveAuthGetResponse>;
21
+ validateCachedTokens(): Promise<boolean>;
20
22
  private checkAccessToken;
21
23
  private handleExpiration;
22
24
  private handleAuthentication;
@@ -19,6 +19,8 @@ export declare class EsolveSessionService {
19
19
  get currentSession(): EsolveSession;
20
20
  constructor(platformId: object, config: EsolveConnectConfig, cookieService: EsolveCookieService);
21
21
  clearTimer(): void;
22
+ getCachedSession(): EsolveSession | null;
23
+ resetSessionCache(): void;
22
24
  restore(expirationCallback: (session?: EsolveSession) => void, invalidSessionCallback: () => void): void;
23
25
  handleSession(user_id: number, location_id: number, key: string, expiry_time: number, expires: number, expirationCallback: () => void): void;
24
26
  handleUpdateSession({ user_id, location_id, }: SessionUpdateOptions, callback?: () => void): void;
@@ -26,6 +28,7 @@ export declare class EsolveSessionService {
26
28
  private startTimer;
27
29
  private getBackup;
28
30
  private setBackup;
31
+ private removeBackup;
29
32
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveSessionService, never>;
30
33
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveSessionService>;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.29.5",
3
+ "version": "0.29.6",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"