Skip to content

How to obtain user configuration within the route guard? #1488

Description

@LiJun0107

Describe the bug
Because after the verification is successful, when entering the page, different routes need to be redirected based on the user configuration. However, since obtaining user data is asynchronous while the route guards are synchronous, it results in not being able to obtain the data during the interception process. So, how can we achieve the goal of obtaining the user data in advance before the guard interception?

Expected behavior
It is possible to obtain user data before the route guard interception.

Desktop (please complete the following information):
Angular v20
angular-oauth2-oidc v20.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions