Friday, 5 July 2019

User Registration Using Token Refresh And Local Storage In Angular | 0010-24

You will learn how to solve a problem where user is just registered on our website and we want to persist the user. So that after registration it should redirect to the home page and When user refreshes the page still user should be logged in. In order to do that we need to get JWT token from server and save it in the local storage using token service in angular. Once it is stored in local storage. On page refresh we have to fetch the JWT Token from the storage and send it to server. Please watch this video to see this in live coding with detail explanation. If you have any questions then please write in the comment section. Source Code: https://ift.tt/30gd9so -~-~~-~~~-~~-~- Please watch: "4- What is the Difference Promise vs Observable part 2 " https://www.youtube.com/watch?v=YTtlHHfQJWI -~-~~-~~~-~~-~-| https://youtu.be/L9AT-1g7sEk| Full Stack Master

No comments:

Post a Comment