ngx-sp-auth 4.23.11 → 4.23.13

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.
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { ApplicationRef, Injector } from '@angular/core';
2
+ import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
5
5
  import { RetTelasPesquisa } from '../models/ret-telas-pesquisa.model';
@@ -27,12 +27,12 @@ import * as i0 from "@angular/core";
27
27
  * }
28
28
  */
29
29
  export declare class PesquisaTelasGlobalService {
30
+ private _componentFactoryResolver;
30
31
  private _appRef;
31
32
  private _injector;
32
33
  private _httpClient;
33
34
  private _customEnvironmentService;
34
35
  private _authUtils;
35
- private _container;
36
36
  /**
37
37
  * Referência ao componente dinâmico criado.
38
38
  * Usado para gerenciar o ciclo de vida e estado do componente.
@@ -68,7 +68,7 @@ export declare class PesquisaTelasGlobalService {
68
68
  private _componentSearchSub;
69
69
  private readonly _BASE_URL;
70
70
  private readonly _HTTP_HEADERS;
71
- constructor(_appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService, _authUtils: AuthUtilService);
71
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _appRef: ApplicationRef, _injector: Injector, _httpClient: HttpClient, _customEnvironmentService: LibCustomEnvironmentService, _authUtils: AuthUtilService);
72
72
  /**
73
73
  * Lifecycle hook do Angular chamado quando o serviço é destruído.
74
74
  *
@@ -94,7 +94,7 @@ export declare class PesquisaTelasGlobalService {
94
94
  *
95
95
  * Este método utiliza a API baixo nível do Angular para criar um componente dinamicamente e anexá-lo ao DOM. O processo envolve:
96
96
  *
97
- * 1. Criar o componente via `container.createComponent()`
97
+ * 1. Criar o componente via ComponentFactoryResolver
98
98
  * 2. Configurar suas propriedades iniciais
99
99
  * 3. Registrá-lo no mecanismo de detecção de mudanças do Angular
100
100
  * 4. Anexá-lo ao DOM (fora da hierarquia normal de componentes)
@@ -1,6 +1,6 @@
1
1
  import { HttpBackend } from '@angular/common/http';
2
2
  import { Router } from '@angular/router';
3
- import { RetError } from 'ngx-sp-infra';
3
+ import { RetError, RetString } from 'ngx-sp-infra';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
5
  import { LibCustomEnvironmentService } from '../custom/lib-custom-environment.service';
6
6
  import { LibCustomStorageService } from '../custom/lib-custom-storage.service';
@@ -17,6 +17,7 @@ export declare class AuthStorageService {
17
17
  private readonly _BASE_URL;
18
18
  private readonly _LOGOUT_BASE_URL;
19
19
  private readonly _BASE_VERIFICATION_URL;
20
+ private readonly _BASE_USERTOKEN_URL;
20
21
  private readonly _HTTP_HEADERS;
21
22
  private readonly __local_key;
22
23
  private __isSaving;
@@ -95,6 +96,7 @@ export declare class AuthStorageService {
95
96
  isLoggedIn: boolean;
96
97
  }>;
97
98
  verifyToken(): Observable<RetError>;
99
+ getToken(): Observable<RetString>;
98
100
  /** Verifica a cada diferença de tempo entre a data atual e a data do token. */
99
101
  /**
100
102
  * Realiza o logout do sistema, consumindo o endpoint de logout para remover os cookies e limpando as informações de autenticação armazenadas no localStorage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-auth",
3
- "version": "4.23.11",
3
+ "version": "4.23.13",
4
4
  "description": "Biblioteca de utilitários de autenticação.",
5
5
  "author": "P&D",
6
6
  "keywords": [