UNPKG

@dbg-riskit/angular-auth

Version:

15 lines (14 loc) 871 B
import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, RouterStateSnapshot } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthRoutingFlowService } from './auth.routing.flow.service'; import { AuthService } from './auth.service'; import * as i0 from "@angular/core"; export declare class AuthGuard implements CanActivate, CanActivateChild { private readonly authService; private readonly authRoutingFlowService; constructor(authService: AuthService, authRoutingFlowService: AuthRoutingFlowService); canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>; canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean>; static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>; }