@rxap/authentication
Version:
Provides authentication services, guards, and interceptors for Angular applications. It supports token-based authentication and provides features such as sign-out functionality and routing based on authentication status. This package also includes utiliti
17 lines (16 loc) • 949 B
TypeScript
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { RxapAuthenticationService } from './authentication.service';
import * as i0 from "@angular/core";
export declare class RxapAuthenticationGuard {
authentication: RxapAuthenticationService;
router: Router;
private readonly deactivated;
lastUrl: string | null;
constructor(authentication: RxapAuthenticationService, router: Router, deactivated?: boolean | null);
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<UrlTree | boolean>;
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<UrlTree | boolean>;
private checkAuthStatus;
private createUrlTreeToLastUrl;
static ɵfac: i0.ɵɵFactoryDeclaration<RxapAuthenticationGuard, [null, null, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<RxapAuthenticationGuard>;
}