Closing browser window and opening it again shows log in in upper bar
siom79 opened this issue · 3 comments
Hi,
thank you for the great tutorial and example application. It really helped me figuring things out.
But I noticed that if you have successfully logged in and then close the browser window and open it again for the URL http://localhost:4200/profile
it will show the Profile page. Which is OK as the Cognito Cookies are stored and your are authenticated, but you see the log in and log out links on the upper bar.
Thanks @siom79!
This is because the isAuthenticated
method of the CognitoService
service is not getting the cookie or the browser session. If you implement the search in the browser session or in the browser cookie, you will get the result you want.
Let me know if you have any doubts.
Great, thanks a lot.