mirror of
https://github.com/bitwarden/jslib
synced 2025-12-23 11:43:51 +00:00
[bug] Add missing await to auth guard
This commit is contained in:
@@ -16,7 +16,7 @@ export class AuthGuardService implements CanActivate {
|
||||
private messagingService: MessagingService, private stateService: StateService) { }
|
||||
|
||||
async canActivate(route: ActivatedRouteSnapshot, routerState: RouterStateSnapshot) {
|
||||
const isAuthed = this.stateService.getIsAuthenticated();
|
||||
const isAuthed = await this.stateService.getIsAuthenticated();
|
||||
if (!isAuthed) {
|
||||
this.messagingService.send('authBlocked');
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user