DEV Community

Discussion on: Authentication and Sessions for MVC Apps with NestJS

Collapse
 
tomaszjankowski profile image
tomasz-jankowski

Great job!
Could you update your solution to implement redirection from login page to a profile page when user is already logged-in?

Collapse
 
tomaszjankowski profile image
tomasz-jankowski • Edited

I tried doing something like this image and it works, but I end up with error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

Any ideas? Couldn't resolve it with solutions from many Stack Overflow topics.