fix(plugin-authentication): CB-493 authentication behavior

This commit is contained in:
Wroud
2020-11-15 22:02:36 +03:00
parent 2756626409
commit fe413dd0be
@@ -77,9 +77,9 @@ export class AuthenticationService extends Bootstrap {
}
register(): void {
this.appAuthService.auth.addPostHandler(async state => {
this.appAuthService.auth.addPostHandler(state => {
if (!state) {
await this.requireAuthentication();
this.requireAuthentication();
}
});
this.appScreenService.activation.addHandler(() => this.requireAuthentication());