@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.
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +8 -17
- package/esm2022/lib/components/dynamic-form/fields/dynamic-field-lookup.component.mjs +13 -4
- package/esm2022/lib/services/auth.service.mjs +24 -118
- package/fesm2022/seniorsistemas-components-ai.mjs +43 -136
- package/fesm2022/seniorsistemas-components-ai.mjs.map +1 -1
- package/lib/services/auth.service.d.ts +2 -45
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
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>;
|