Skip to content
Snippets Groups Projects
Commit 5b01aac7 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add network guard

parent 2ddbcd72
No related branches found
No related tags found
1 merge request!538Internal Applications
import {inject} from '@angular/core';
import {CanActivateFn} from '@angular/router';
import {AuthService} from '../services/auth.service';
/**
* Network auth route guard.
*/
export const networkGuard: CanActivateFn = () => {
const authService = inject(AuthService);
return authService.isAuthorized();
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment