tango-app-ui-auth 3.5.0-beta.8 → 3.5.0-beta.9
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/tango-auth-login/tango-auth-login.component.mjs +17 -5
- package/esm2022/lib/guards/auth.guard.mjs +27 -8
- package/esm2022/lib/services/auth.service.mjs +56 -6
- package/fesm2022/tango-app-ui-auth.mjs +97 -16
- package/fesm2022/tango-app-ui-auth.mjs.map +1 -1
- package/lib/guards/auth.guard.d.ts +2 -2
- package/lib/services/auth.service.d.ts +5 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Router } from '@angular/router';
|
2
2
|
import { AuthService } from '../services/auth.service';
|
3
3
|
import { GlobalStateService } from 'tango-app-ui-global';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -8,7 +8,7 @@ export declare class AuthGuard {
|
|
8
8
|
private route;
|
9
9
|
private authlocalStorageToken;
|
10
10
|
constructor(authService: AuthService, gs: GlobalStateService, route: Router);
|
11
|
-
canActivate(
|
11
|
+
canActivate(): boolean;
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
14
14
|
}
|
@@ -17,8 +17,12 @@ export declare class AuthService {
|
|
17
17
|
paymentSubscriptionApiUrl: string;
|
18
18
|
get currentUserValue(): any;
|
19
19
|
constructor(router: Router, http: HttpClient, gs: GlobalStateService);
|
20
|
+
private base64Encode;
|
21
|
+
private base64Decode;
|
22
|
+
setCookie(name: string, value: string, days?: number): void;
|
23
|
+
getCookie(name: string): string | null;
|
20
24
|
getHeaders(): {
|
21
|
-
|
25
|
+
[header: string]: string;
|
22
26
|
};
|
23
27
|
logout(): void;
|
24
28
|
sendSignupOtp(data: any): Observable<any>;
|