@igo2/auth 1.14.2 → 1.14.3

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.
Files changed (53) hide show
  1. package/esm2020/igo2-auth.mjs +4 -4
  2. package/esm2020/lib/auth-form/auth-facebook.component.mjs +60 -60
  3. package/esm2020/lib/auth-form/auth-form.component.mjs +276 -276
  4. package/esm2020/lib/auth-form/auth-google.component.mjs +98 -98
  5. package/esm2020/lib/auth-form/auth-intern.component.mjs +118 -118
  6. package/esm2020/lib/auth-form/auth-microsoft.component.mjs +93 -93
  7. package/esm2020/lib/auth-form/auth-microsoftb2c.component.mjs +92 -92
  8. package/esm2020/lib/auth-form/index.mjs +4 -4
  9. package/esm2020/lib/auth-routing.module.mjs +23 -23
  10. package/esm2020/lib/auth.module.mjs +90 -90
  11. package/esm2020/lib/shared/admin.guard.mjs +32 -32
  12. package/esm2020/lib/shared/auth-microsoft.provider.mjs +83 -83
  13. package/esm2020/lib/shared/auth-msalBroadcastServiceb2c.service.mjs +37 -37
  14. package/esm2020/lib/shared/auth-msalServiceb2c.service..mjs +79 -79
  15. package/esm2020/lib/shared/auth.guard.mjs +31 -31
  16. package/esm2020/lib/shared/auth.interceptor.mjs +154 -154
  17. package/esm2020/lib/shared/auth.interface.mjs +1 -1
  18. package/esm2020/lib/shared/auth.service.mjs +159 -159
  19. package/esm2020/lib/shared/logged.guard.mjs +31 -31
  20. package/esm2020/lib/shared/profils.guard.mjs +36 -36
  21. package/esm2020/lib/shared/protected.directive.mjs +18 -18
  22. package/esm2020/lib/shared/storage.interface.mjs +1 -1
  23. package/esm2020/lib/shared/storage.service.mjs +90 -90
  24. package/esm2020/lib/shared/token.service.mjs +46 -46
  25. package/esm2020/public_api.mjs +18 -18
  26. package/fesm2015/igo2-auth.mjs +1579 -1579
  27. package/fesm2020/igo2-auth.mjs +1477 -1477
  28. package/index.d.ts +5 -5
  29. package/lib/auth-form/auth-facebook.component.d.ts +18 -18
  30. package/lib/auth-form/auth-form.component.d.ts +42 -42
  31. package/lib/auth-form/auth-google.component.d.ts +24 -24
  32. package/lib/auth-form/auth-intern.component.d.ts +21 -21
  33. package/lib/auth-form/auth-microsoft.component.d.ts +23 -23
  34. package/lib/auth-form/auth-microsoftb2c.component.d.ts +23 -23
  35. package/lib/auth-form/index.d.ts +4 -4
  36. package/lib/auth-routing.module.d.ts +7 -7
  37. package/lib/auth.module.d.ts +23 -23
  38. package/lib/shared/admin.guard.d.ts +13 -13
  39. package/lib/shared/auth-microsoft.provider.d.ts +30 -30
  40. package/lib/shared/auth-msalBroadcastServiceb2c.service.d.ts +15 -15
  41. package/lib/shared/auth-msalServiceb2c.service..d.ts +33 -33
  42. package/lib/shared/auth.guard.d.ts +13 -13
  43. package/lib/shared/auth.interceptor.d.ts +24 -24
  44. package/lib/shared/auth.interface.d.ts +99 -99
  45. package/lib/shared/auth.service.d.ts +44 -44
  46. package/lib/shared/logged.guard.d.ts +13 -13
  47. package/lib/shared/profils.guard.d.ts +13 -13
  48. package/lib/shared/protected.directive.d.ts +8 -8
  49. package/lib/shared/storage.interface.d.ts +4 -4
  50. package/lib/shared/storage.service.d.ts +18 -18
  51. package/lib/shared/token.service.d.ts +15 -15
  52. package/package.json +3 -3
  53. package/public_api.d.ts +15 -15
@@ -1,24 +1,24 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http';
3
- import { Observable } from 'rxjs';
4
- import { ConfigService } from '@igo2/core';
5
- import { TokenService } from './token.service';
6
- import * as i0 from "@angular/core";
7
- export declare class AuthInterceptor implements HttpInterceptor {
8
- private config;
9
- private tokenService;
10
- private http;
11
- private refreshInProgress;
12
- private get trustHosts();
13
- private get hostsWithCredentials();
14
- private get hostsWithAuthByKey();
15
- constructor(config: ConfigService, tokenService: TokenService, http: HttpClient);
16
- intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
17
- interceptXhr(xhr: any, url: string): boolean;
18
- alterUrlWithKeyAuth(url: string): string;
19
- private handleHostsWithCredentials;
20
- private handleHostsAuthByKey;
21
- refreshToken(): import("rxjs").Subscription;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
24
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { ConfigService } from '@igo2/core';
5
+ import { TokenService } from './token.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AuthInterceptor implements HttpInterceptor {
8
+ private config;
9
+ private tokenService;
10
+ private http;
11
+ private refreshInProgress;
12
+ private get trustHosts();
13
+ private get hostsWithCredentials();
14
+ private get hostsWithAuthByKey();
15
+ constructor(config: ConfigService, tokenService: TokenService, http: HttpClient);
16
+ intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
17
+ interceptXhr(xhr: any, url: string): boolean;
18
+ alterUrlWithKeyAuth(url: string): string;
19
+ private handleHostsWithCredentials;
20
+ private handleHostsAuthByKey;
21
+ refreshToken(): import("rxjs").Subscription;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
24
+ }
@@ -1,99 +1,99 @@
1
- import { BrowserAuthOptions } from '@azure/msal-browser';
2
- import { MsalGuardConfiguration } from '@azure/msal-angular';
3
- export interface AuthInternOptions {
4
- enabled?: boolean;
5
- }
6
- export interface AuthFacebookOptions {
7
- enabled?: boolean;
8
- appId: string;
9
- }
10
- export interface AuthGoogleOptions {
11
- enabled?: boolean;
12
- apiKey: string;
13
- clientId: string;
14
- }
15
- export interface AuthMicrosoftOptions {
16
- enabled?: boolean;
17
- clientId: string;
18
- redirectUri?: string;
19
- authority?: string;
20
- }
21
- export interface AuthMicrosoftb2cOptions {
22
- enabled?: boolean;
23
- browserAuthOptions?: BrowserAuthOptions;
24
- options?: AuthMicrosoftb2cOptionsOptions;
25
- scopes?: string[];
26
- }
27
- export interface AuthMicrosoftb2cOptionsOptions {
28
- names: AuthMicrosoftb2cOptionsNames;
29
- authorities: AuthMicrosoftb2cOptionsAuthorities;
30
- authorityDomain: string[];
31
- }
32
- export interface AuthMicrosoftb2cOptionsNames {
33
- signUpSignIn: string;
34
- forgotPassword: string;
35
- editProfile: string;
36
- }
37
- export interface AuthMicrosoftb2cOptionsAuthorities {
38
- signUpSignIn: AuthMicrosoftb2cOptionsAuthority;
39
- forgotPassword: AuthMicrosoftb2cOptionsAuthority;
40
- editProfile: AuthMicrosoftb2cOptionsAuthority;
41
- }
42
- export interface AuthMicrosoftb2cOptionsAuthority {
43
- authority: string;
44
- }
45
- export interface AuthOptions {
46
- url?: string;
47
- tokenKey: string;
48
- allowAnonymous?: boolean;
49
- loginRoute?: string;
50
- logoutRoute?: string;
51
- homeRoute?: string;
52
- intern?: AuthInternOptions;
53
- facebook?: AuthFacebookOptions;
54
- google?: AuthGoogleOptions;
55
- microsoft?: AuthMicrosoftOptions;
56
- microsoftb2c?: AuthMicrosoftb2cOptions;
57
- trustHosts?: string[];
58
- profilsGuard?: string[];
59
- hostsWithCredentials?: WithCredentialsOptions[];
60
- hostsByKey?: AuthByKeyOptions[];
61
- }
62
- export interface AuthByKeyOptions {
63
- domainRegFilters?: string;
64
- keyProperty?: string;
65
- keyValue?: string;
66
- }
67
- export interface WithCredentialsOptions {
68
- withCredentials?: boolean;
69
- domainRegFilters?: string;
70
- }
71
- export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
72
- type: string;
73
- }
74
- export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
75
- type: string;
76
- }
77
- export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
78
- type: string;
79
- }
80
- export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
81
- type: string;
82
- }
83
- export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
84
- type: string;
85
- }
86
- export interface User {
87
- source?: string;
88
- sourceId?: string;
89
- email?: string;
90
- firstName?: string;
91
- lastName?: string;
92
- locale?: string;
93
- isExpired?: boolean;
94
- admin?: boolean;
95
- defaultContextId?: string;
96
- }
97
- export interface IInfosUser {
98
- tokenId: string;
99
- }
1
+ import { BrowserAuthOptions } from '@azure/msal-browser';
2
+ import { MsalGuardConfiguration } from '@azure/msal-angular';
3
+ export interface AuthInternOptions {
4
+ enabled?: boolean;
5
+ }
6
+ export interface AuthFacebookOptions {
7
+ enabled?: boolean;
8
+ appId: string;
9
+ }
10
+ export interface AuthGoogleOptions {
11
+ enabled?: boolean;
12
+ apiKey: string;
13
+ clientId: string;
14
+ }
15
+ export interface AuthMicrosoftOptions {
16
+ enabled?: boolean;
17
+ clientId: string;
18
+ redirectUri?: string;
19
+ authority?: string;
20
+ }
21
+ export interface AuthMicrosoftb2cOptions {
22
+ enabled?: boolean;
23
+ browserAuthOptions?: BrowserAuthOptions;
24
+ options?: AuthMicrosoftb2cOptionsOptions;
25
+ scopes?: string[];
26
+ }
27
+ export interface AuthMicrosoftb2cOptionsOptions {
28
+ names: AuthMicrosoftb2cOptionsNames;
29
+ authorities: AuthMicrosoftb2cOptionsAuthorities;
30
+ authorityDomain: string[];
31
+ }
32
+ export interface AuthMicrosoftb2cOptionsNames {
33
+ signUpSignIn: string;
34
+ forgotPassword: string;
35
+ editProfile: string;
36
+ }
37
+ export interface AuthMicrosoftb2cOptionsAuthorities {
38
+ signUpSignIn: AuthMicrosoftb2cOptionsAuthority;
39
+ forgotPassword: AuthMicrosoftb2cOptionsAuthority;
40
+ editProfile: AuthMicrosoftb2cOptionsAuthority;
41
+ }
42
+ export interface AuthMicrosoftb2cOptionsAuthority {
43
+ authority: string;
44
+ }
45
+ export interface AuthOptions {
46
+ url?: string;
47
+ tokenKey: string;
48
+ allowAnonymous?: boolean;
49
+ loginRoute?: string;
50
+ logoutRoute?: string;
51
+ homeRoute?: string;
52
+ intern?: AuthInternOptions;
53
+ facebook?: AuthFacebookOptions;
54
+ google?: AuthGoogleOptions;
55
+ microsoft?: AuthMicrosoftOptions;
56
+ microsoftb2c?: AuthMicrosoftb2cOptions;
57
+ trustHosts?: string[];
58
+ profilsGuard?: string[];
59
+ hostsWithCredentials?: WithCredentialsOptions[];
60
+ hostsByKey?: AuthByKeyOptions[];
61
+ }
62
+ export interface AuthByKeyOptions {
63
+ domainRegFilters?: string;
64
+ keyProperty?: string;
65
+ keyValue?: string;
66
+ }
67
+ export interface WithCredentialsOptions {
68
+ withCredentials?: boolean;
69
+ domainRegFilters?: string;
70
+ }
71
+ export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
72
+ type: string;
73
+ }
74
+ export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
75
+ type: string;
76
+ }
77
+ export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
78
+ type: string;
79
+ }
80
+ export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
81
+ type: string;
82
+ }
83
+ export interface MSPMsalGuardConfiguration extends MsalGuardConfiguration {
84
+ type: string;
85
+ }
86
+ export interface User {
87
+ source?: string;
88
+ sourceId?: string;
89
+ email?: string;
90
+ firstName?: string;
91
+ lastName?: string;
92
+ locale?: string;
93
+ isExpired?: boolean;
94
+ admin?: boolean;
95
+ defaultContextId?: string;
96
+ }
97
+ export interface IInfosUser {
98
+ tokenId: string;
99
+ }
@@ -1,44 +1,44 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Router } from '@angular/router';
3
- import { Observable, BehaviorSubject } from 'rxjs';
4
- import { ConfigService, LanguageService, MessageService } from '@igo2/core';
5
- import { User, IInfosUser } from './auth.interface';
6
- import { TokenService } from './token.service';
7
- import * as i0 from "@angular/core";
8
- export declare class AuthService {
9
- private http;
10
- private tokenService;
11
- private config;
12
- private languageService;
13
- private messageService;
14
- private router;
15
- authenticate$: BehaviorSubject<boolean>;
16
- logged$: BehaviorSubject<boolean>;
17
- redirectUrl: string;
18
- languageForce: boolean;
19
- private anonymous;
20
- get hasAuthService(): boolean;
21
- constructor(http: HttpClient, tokenService: TokenService, config: ConfigService, languageService: LanguageService, messageService: MessageService, router: Router);
22
- login(username: string, password: string): Observable<void>;
23
- loginWithToken(token: string, type: string, infosUser?: IInfosUser): Observable<void>;
24
- loginAnonymous(): Observable<boolean>;
25
- refresh(): Observable<void>;
26
- logout(): Observable<boolean>;
27
- isAuthenticated(): boolean;
28
- getToken(): string;
29
- decodeToken(): any;
30
- goToRedirectUrl(): void;
31
- getUserInfo(): Observable<User>;
32
- getProfils(): Observable<{
33
- profils: string[];
34
- }>;
35
- updateUser(user: User): Observable<User>;
36
- private encodePassword;
37
- get logged(): boolean;
38
- get isAnonymous(): boolean;
39
- get authenticated(): boolean;
40
- get isAdmin(): boolean;
41
- private loginCall;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [null, null, null, null, null, { optional: true; }]>;
43
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
44
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Router } from '@angular/router';
3
+ import { Observable, BehaviorSubject } from 'rxjs';
4
+ import { ConfigService, LanguageService, MessageService } from '@igo2/core';
5
+ import { User, IInfosUser } from './auth.interface';
6
+ import { TokenService } from './token.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AuthService {
9
+ private http;
10
+ private tokenService;
11
+ private config;
12
+ private languageService;
13
+ private messageService;
14
+ private router;
15
+ authenticate$: BehaviorSubject<boolean>;
16
+ logged$: BehaviorSubject<boolean>;
17
+ redirectUrl: string;
18
+ languageForce: boolean;
19
+ private anonymous;
20
+ get hasAuthService(): boolean;
21
+ constructor(http: HttpClient, tokenService: TokenService, config: ConfigService, languageService: LanguageService, messageService: MessageService, router: Router);
22
+ login(username: string, password: string): Observable<void>;
23
+ loginWithToken(token: string, type: string, infosUser?: IInfosUser): Observable<void>;
24
+ loginAnonymous(): Observable<boolean>;
25
+ refresh(): Observable<void>;
26
+ logout(): Observable<boolean>;
27
+ isAuthenticated(): boolean;
28
+ getToken(): string;
29
+ decodeToken(): any;
30
+ goToRedirectUrl(): void;
31
+ getUserInfo(): Observable<User>;
32
+ getProfils(): Observable<{
33
+ profils: string[];
34
+ }>;
35
+ updateUser(user: User): Observable<User>;
36
+ private encodePassword;
37
+ get logged(): boolean;
38
+ get isAnonymous(): boolean;
39
+ get authenticated(): boolean;
40
+ get isAdmin(): boolean;
41
+ private loginCall;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, [null, null, null, null, null, { optional: true; }]>;
43
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
44
+ }
@@ -1,13 +1,13 @@
1
- import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
- import { ConfigService } from '@igo2/core';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class LoggedGuard implements CanActivate {
6
- private authService;
7
- private config;
8
- private router;
9
- constructor(authService: AuthService, config: ConfigService, router: Router);
10
- canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggedGuard, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<LoggedGuard>;
13
- }
1
+ import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
+ import { ConfigService } from '@igo2/core';
3
+ import { AuthService } from './auth.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LoggedGuard implements CanActivate {
6
+ private authService;
7
+ private config;
8
+ private router;
9
+ constructor(authService: AuthService, config: ConfigService, router: Router);
10
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggedGuard, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggedGuard>;
13
+ }
@@ -1,13 +1,13 @@
1
- import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
- import { ConfigService } from '@igo2/core';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ProfilsGuard implements CanActivate {
6
- private authService;
7
- private config;
8
- private router;
9
- constructor(authService: AuthService, config: ConfigService, router: Router);
10
- canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): import("rxjs").Observable<boolean>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ProfilsGuard, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ProfilsGuard>;
13
- }
1
+ import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
2
+ import { ConfigService } from '@igo2/core';
3
+ import { AuthService } from './auth.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ProfilsGuard implements CanActivate {
6
+ private authService;
7
+ private config;
8
+ private router;
9
+ constructor(authService: AuthService, config: ConfigService, router: Router);
10
+ canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): import("rxjs").Observable<boolean>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfilsGuard, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProfilsGuard>;
13
+ }
@@ -1,8 +1,8 @@
1
- import { ElementRef } from '@angular/core';
2
- import { AuthService } from './auth.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ProtectedDirective {
5
- constructor(authentication: AuthService, el: ElementRef);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ProtectedDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<ProtectedDirective, "[igoProtected]", never, {}, {}, never, never, false>;
8
- }
1
+ import { ElementRef } from '@angular/core';
2
+ import { AuthService } from './auth.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProtectedDirective {
5
+ constructor(authentication: AuthService, el: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProtectedDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ProtectedDirective, "[igoProtected]", never, {}, {}, never, never, false>;
8
+ }
@@ -1,4 +1,4 @@
1
- import { StorageOptions } from '@igo2/core';
2
- export interface AuthStorageOptions extends StorageOptions {
3
- url: string;
4
- }
1
+ import { StorageOptions } from '@igo2/core';
2
+ export interface AuthStorageOptions extends StorageOptions {
3
+ url: string;
4
+ }
@@ -1,18 +1,18 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { StorageService, StorageScope, ConfigService } from '@igo2/core';
3
- import { AuthService } from './auth.service';
4
- import { TokenService } from './token.service';
5
- import { AuthStorageOptions } from './storage.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class AuthStorageService extends StorageService {
8
- private http;
9
- private authService;
10
- private tokenService;
11
- protected options: AuthStorageOptions;
12
- constructor(config: ConfigService, http: HttpClient, authService: AuthService, tokenService: TokenService);
13
- set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
14
- remove(key: string, scope?: StorageScope): void;
15
- clear(scope?: StorageScope): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthStorageService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthStorageService>;
18
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { StorageService, StorageScope, ConfigService } from '@igo2/core';
3
+ import { AuthService } from './auth.service';
4
+ import { TokenService } from './token.service';
5
+ import { AuthStorageOptions } from './storage.interface';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AuthStorageService extends StorageService {
8
+ private http;
9
+ private authService;
10
+ private tokenService;
11
+ protected options: AuthStorageOptions;
12
+ constructor(config: ConfigService, http: HttpClient, authService: AuthService, tokenService: TokenService);
13
+ set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
14
+ remove(key: string, scope?: StorageScope): void;
15
+ clear(scope?: StorageScope): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthStorageService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthStorageService>;
18
+ }
@@ -1,15 +1,15 @@
1
- import { Injector } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TokenService {
4
- private injector;
5
- private options;
6
- constructor(injector: Injector);
7
- set(token: string): void;
8
- remove(): void;
9
- get(): string;
10
- decode(): any;
11
- isExpired(): boolean;
12
- private get tokenKey();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
15
- }
1
+ import { Injector } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TokenService {
4
+ private injector;
5
+ private options;
6
+ constructor(injector: Injector);
7
+ set(token: string): void;
8
+ remove(): void;
9
+ get(): string;
10
+ decode(): any;
11
+ isExpired(): boolean;
12
+ private get tokenKey();
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/auth",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -27,8 +27,8 @@
27
27
  "@angular/core": "^14.1.2",
28
28
  "@angular/forms": "^14.1.2",
29
29
  "@angular/material": "^14.1.2",
30
- "@igo2/core": "^1.14.2",
31
- "@igo2/utils": "^1.14.2",
30
+ "@igo2/core": "^1.14.3",
31
+ "@igo2/utils": "^1.14.3",
32
32
  "rxjs": "^7.5.6",
33
33
  "@azure/msal-angular": "^2.4.1",
34
34
  "@azure/msal-browser": "^2.28.1"
package/public_api.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- export { AuthFormComponent } from './lib/auth-form';
2
- export * from './lib/shared/auth.service';
3
- export * from './lib/shared/logged.guard';
4
- export * from './lib/shared/auth.guard';
5
- export * from './lib/shared/admin.guard';
6
- export * from './lib/shared/profils.guard';
7
- export * from './lib/shared/auth.interceptor';
8
- export * from './lib/shared/auth.interface';
9
- export * from './lib/shared/auth-microsoft.provider';
10
- export * from './lib/shared/protected.directive';
11
- export * from './lib/shared/token.service';
12
- export * from './lib/shared/storage.interface';
13
- export * from './lib/shared/storage.service';
14
- export * from './lib/auth-routing.module';
15
- export * from './lib/auth.module';
1
+ export { AuthFormComponent } from './lib/auth-form';
2
+ export * from './lib/shared/auth.service';
3
+ export * from './lib/shared/logged.guard';
4
+ export * from './lib/shared/auth.guard';
5
+ export * from './lib/shared/admin.guard';
6
+ export * from './lib/shared/profils.guard';
7
+ export * from './lib/shared/auth.interceptor';
8
+ export * from './lib/shared/auth.interface';
9
+ export * from './lib/shared/auth-microsoft.provider';
10
+ export * from './lib/shared/protected.directive';
11
+ export * from './lib/shared/token.service';
12
+ export * from './lib/shared/storage.interface';
13
+ export * from './lib/shared/storage.service';
14
+ export * from './lib/auth-routing.module';
15
+ export * from './lib/auth.module';