Skip to content

How to get true/false from NbAuthService.isAuthenticated() #15

Description

@nnixaa

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions