Nikita M
Nikita M
Jul 10, 2017 · 1 min read

Thank you for the great tutorial!
After adding authService.userSignedIn$ | async in the toolbar template I found the problem. If a user is logged in and refreshed the page, the Login and Register links will appear for about 1 second and then will be changed to Profile and Logout.
The only solution I found is not to use userSignedIn$ | async and work through tokenAuthService.userSignedIn().
Do you have any ideas how to fix this?

    Nikita M

    Written by

    Nikita M