Skip to content

Add observable to indicate if User Profile was loaded #107

@jeroenheijmans

Description

@jeroenheijmans

In the main service of this sample we load the User Profile like this:

this.oauthService.events
.pipe(filter(e => ['token_received'].includes(e.type)))
.subscribe(e => this.oauthService.loadUserProfile());

I suspect some people will want to "wait" for the profile to be loaded before doing stuff. So it might make sense to add isUserProfileLoaded$ observable similar to isAuthenticated$ and isDoneLoading$.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions