Open camilosampedro opened 7 years ago
Hey, I'd like to work on this issue :), but it is one of my very first times contributing, so I might need some help :)
Thank you and you are very welcome to contribute!
One of the first steps is understanding how the authentication process is done for this particular application: It is used a token sent inside a cookie between server and client.
The main problem is that I could not understand why Angular2 is not aware of the existence of that cookie, even if it exists at run time. It is important because it is the main way to know it the user is logged in or not, to change its view.
As you are new to the project, it would be very great if you have some suggestions or advices. 😄
Feel free to ask anything you want, good day.
Thanks, will look into it and of course ask if anything is unclear :)
Inside
login.service.ts
, after a correct login, check the existence ofPLAY2AUTH
cookie.Actually it is getting the cookie and it is sending it to the server automatically as a default browser behavior, but the Angular2 code doesn't correctly know that it is logged in, it is only being checked that the response is a 200 and saving a token with
localStorage
.