I'm currently in the process of developing my first full-stack MEAN application, but I've encountered some issues due to following an outdated tutorial with newer npm packages. The particular problem arises when handling the login functionality within my app. While registering a user works as intended by storing new user data and preventing duplicate entries, the login feature fails to update the Angular view upon successful authentication.
I have utilized hashbang in my HTML code, but I'm unsure if there are additional modifications required within the codebase for proper functionality?
Below is the source code snippet for the Angular application:
[Angular app code snippet here]
Furthermore, here is the snippet for the authentication route:
[Authentication route code snippet here]
UPDATE:
I am considering whether the issue might be related to PassportJS integration. Below is the relevant code excerpt:
[PassportJS code snippet here]
Any advice or guidance on resolving this issue would be greatly appreciated. Thank you!