Add strong typing to variables and functions.

This commit is contained in:
Spencer Ofwiti
2021-04-29 20:10:39 +03:00
parent d0e0108274
commit 9921488a04
37 changed files with 315 additions and 282 deletions

View File

@@ -27,10 +27,10 @@ export class AuthComponent implements OnInit {
key: ['', Validators.required],
});
await this.authService.init();
//if (this.authService.privateKey !== undefined) {
// const setKey = await this.authService.setKey(this.authService.privateKey);
// }
//}
// if (this.authService.privateKey !== undefined) {
// const setKey = await this.authService.setKey(this.authService.privateKey);
// }
// }
}
get keyFormStub(): any { return this.keyForm.controls; }
@@ -46,7 +46,7 @@ export class AuthComponent implements OnInit {
}
login(): void {
// TODO check if we have privatekey
// TODO check if we have privatekey
// Send us to home if we have a private key
// talk to meta somehow
// in the error interceptor if 401/403 handle it