by: @dzungdev
moved from: akveo/ngx-admin#1298
Hi all,
I would like to ask how I can get true/false from NbAuthService.isAuthenticated()? The problem now is it always returns the Observable so my if() is always true even I haven't logged-in yet (suppose false if haven't logged-in yet)
if (this.nbAuthService.isAuthenticated()) { console.log('run here2'); return true; }
Best regards
by: @dzungdev
moved from: akveo/ngx-admin#1298
Hi all,
I would like to ask how I can get true/false from NbAuthService.isAuthenticated()? The problem now is it always returns the Observable so my if() is always true even I haven't logged-in yet (suppose false if haven't logged-in yet)
if (this.nbAuthService.isAuthenticated()) { console.log('run here2'); return true; }
Best regards