@spartacus/core
Version:
Spartacus - the core framework
21 lines (20 loc) • 1.06 kB
TypeScript
import { CanActivate, Router, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { SemanticPathService } from '../../../routing/configurable-routes/url-translation/semantic-path.service';
import { AuthService } from '../facade/auth.service';
import { AuthRedirectService } from '../services/auth-redirect.service';
import * as i0 from "@angular/core";
/**
* Checks if there isn't any logged in user.
* Use to protect pages dedicated only for guests (eg. login page).
*/
export declare class NotAuthGuard implements CanActivate {
protected authService: AuthService;
protected authRedirectService: AuthRedirectService;
protected semanticPathService: SemanticPathService;
protected router: Router;
constructor(authService: AuthService, authRedirectService: AuthRedirectService, semanticPathService: SemanticPathService, router: Router);
canActivate(): Observable<boolean | UrlTree>;
static ɵfac: i0.ɵɵFactoryDeclaration<NotAuthGuard, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NotAuthGuard>;
}