@linid-dm/directory-manager-client-core
Version:
Core package by providing a set of angular components for the Directory Manager app.
19 lines (18 loc) • 824 B
TypeScript
import { ActivatedRouteSnapshot, CanActivate, Router } from '@angular/router';
import { Store } from '@ngxs/store';
import { OAuthService } from 'angular-oauth2-oidc';
import { Observable } from 'rxjs';
import { EnvService, UserStateModel } from '../../../../shared';
import * as i0 from "@angular/core";
export declare class LoginGuard implements CanActivate {
private _router;
private _store$;
private _oauthService;
private _env;
user$: Observable<UserStateModel>;
alreadyRedirectedToLoginPage: boolean;
constructor(_router: Router, _store$: Store, _oauthService: OAuthService, _env: EnvService);
canActivate(route: ActivatedRouteSnapshot): Observable<boolean>;
static ɵfac: i0.ɵɵFactoryDeclaration<LoginGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LoginGuard>;
}