@seniorsistemas/components-ai 2.0.0 → 2.0.2

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.
@@ -18,64 +18,21 @@ export declare class AuthService {
18
18
  private readonly TOKEN_COOKIE_NAME;
19
19
  private readonly API_URL_COOKIE_NAME;
20
20
  private readonly API_PATH_SUFFIX;
21
- private currentUserSubject;
22
- currentUser$: import("rxjs").Observable<UserToken | null>;
23
21
  constructor(cookieService: CookieService);
24
22
  /**
25
- * Load user token from cookie
26
- */
27
- private loadUserFromCookie;
28
- /**
29
- * Get current user token
23
+ * Parse token from cookie. Always reads fresh from cookie, no cache.
30
24
  */
25
+ private parseTokenFromCookie;
31
26
  getCurrentUser(): UserToken | null;
32
- /**
33
- * Get access token
34
- */
35
27
  getAccessToken(): string | null;
36
- /**
37
- * Get token type (e.g., "Bearer")
38
- */
39
28
  getTokenType(): string;
40
- /**
41
- * Get refresh token
42
- */
43
29
  getRefreshToken(): string | null;
44
- /**
45
- * Get API base URL from cookie
46
- */
47
30
  getApiBaseUrl(): string | null;
48
- /**
49
- * Check if user is authenticated
50
- */
51
31
  isAuthenticated(): boolean;
52
- /**
53
- * Check if token is valid (not expired)
54
- */
55
- private isTokenValid;
56
- /**
57
- * Check if refresh token is valid
58
- */
59
- isRefreshTokenValid(): boolean;
60
- /**
61
- * Get user locale
62
- */
63
32
  getUserLocale(): string;
64
- /**
65
- * Get user full name
66
- */
67
33
  getUserFullName(): string;
68
- /**
69
- * Get user email
70
- */
71
34
  getUserEmail(): string;
72
- /**
73
- * Get tenant name
74
- */
75
35
  getTenantName(): string;
76
- /**
77
- * Get username
78
- */
79
36
  getUsername(): string;
80
37
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
81
38
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seniorsistemas/components-ai",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Biblioteca de componentes reutilizáveis com IA para aplicações Angular da Senior Sistemas",
5
5
  "keywords": [
6
6
  "angular",