benbaran / adal-angular4-example

Angular 4 ADAL Wrapper Example
28 stars 13 forks source link

Initialize service in subscribe mode #19

Open janeski-zz opened 6 years ago

janeski-zz commented 6 years ago

Hi @benbaran Is there any reason the following code: ngOnInit() { this.authSecretService.getConfig().subscribe(res => { this.auth.init(res); });} instead of ngOnInit() { this.auth.init(res); });}

will not authenticate the user?