You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside login.service.ts, after a correct login, check the existence of PLAY2AUTH 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.
The text was updated successfully, but these errors were encountered:
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. 😄
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
.The text was updated successfully, but these errors were encountered: