Skip to content

[Question]: The difference between withAppInitializerAuthCheck and CheckAuth #2114

@SKY-KYJ

Description

@SKY-KYJ

What Version of the library are you using?
19.0.2

Question

When I use Angular19 standalone module found a problem, When using CheckAuth() for manual verification in AppComponent, it can still verify normally. However, when refreshing the page with CheckAuth(), it was found that the data in userData would be lost, causing verification problems. Is this a bug?

With the same configuration, when using withAppInitializerAuthCheck, after userData verifies and logs in, refreshing the page can normally obtain data without any loss.

Since it is necessary to add logic after verification, CheckAuth() is used. How should this be handled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions