|
|
|
@ -4,12 +4,10 @@ import { Injectable } from '@angular/core'; |
|
|
|
@Injectable({ |
|
|
|
providedIn: 'root', |
|
|
|
}) |
|
|
|
export class AuthGuard implements CanActivate, IAuthGuard { |
|
|
|
export class AuthGuard implements IAuthGuard { |
|
|
|
canActivate(): Observable<boolean> | boolean | UrlTree { |
|
|
|
console.error('You should add @abp/ng-oauth packages or create your own auth packages.'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
export interface IAuthGuard { |
|
|
|
canActivate(): Observable<boolean> | boolean | UrlTree; |
|
|
|
} |
|
|
|
export interface IAuthGuard extends CanActivate {} |
|
|
|
|