Login with angle 4

2

I'm learning angular4, and I'd like to know a way to login with it. I can get the data from the backend, but how do I configure the session? (I came from php, the era just use session).

I saw something about storing a token in the localstorage, but that would stay forever, would not it?

    
asked by anonymous 18.08.2017 / 19:30

1 answer

0

You can use this tutorial to create the login with Angular

link

About the localStorage stores the data with no expiration date. Data will not be deleted when the browser is closed and will be available the next day, week or year.

You can see more here link

    
18.08.2017 / 21:27