msal-angular
Version:
Angular MSAL wrapper.
18 lines • 472 B
JavaScript
import { Injectable } from '@angular/core';
import { MsalService } from './msal.service';
export class MsalGuard {
constructor(msalService) {
this.msalService = msalService;
}
canActivate(next, state) {
return this.msalService.authenticated;
}
}
MsalGuard.decorators = [
{ type: Injectable },
];
/** @nocollapse */
MsalGuard.ctorParameters = () => [
{ type: MsalService, },
];
//# sourceMappingURL=msal.guard.js.map