Тёмный
No video :(

117. Authentication - Saving Token in LocalStorage for the autologin feature - Angular 

Leela Web Dev
Подписаться 46 тыс.
Просмотров 18 тыс.
50% 1

Hi Friends
In this video, we will see how to use the localstorage feature for the autologin feature in the angular.
The code is deployed in my Github account.
github.com/lee...
If you like my video, please subscribe to my channel.
RU-vid Page: / leelawebdev
Facebook Page: / leelawebdev
Twitter Page: / leelanarsimha
Linkedin: / leela-narasimha-reddy-...
GitHub: github.com/lee...
#Angular #leelawebdev

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@coding-gemini
@coding-gemini 2 года назад
Excellent stuff, thanks leela bro
@user-gu3nm4yf9g
@user-gu3nm4yf9g 6 месяцев назад
how can we store the data we entered in skill text area and after token expired i want to show that entered skill in text area...?
@fernandafortes3782
@fernandafortes3782 Год назад
Hi love your tutorial but I have a doubt, if there is another username and login he would see the same post made by other user ?
@study2287
@study2287 2 года назад
Hi leela, The same way i have a list of courses from backend and i am displaying all courses on my page and i have one search bar as well on the same page, when i search something i get that data on same page but on refresh i lost that searched data and again get the whole list of data, so is their any alternative of local storage or should i use the same concept as mentioned in this video ?
@yaramalaprashanthi4779
@yaramalaprashanthi4779 Год назад
we can also use get item to retrieve the data right?
@hiteshkumar7625
@hiteshkumar7625 3 года назад
hi leela i have one doubt. i did the login as you have shown saving into localstorage. so for whole project do i have to save data in localstorage with differnt token name ?
@LeelaWebDev
@LeelaWebDev 3 года назад
I didnt get your point. saving authdata in localstorage for the project will be the same for the key.
@hiteshkumar7625
@hiteshkumar7625 3 года назад
@@LeelaWebDev actually after page reload i have stored only email into localstorage. but my other information which i have fetched. do i have to set those information into localstorage as well ? like username, phonenumber etc
@LeelaWebDev
@LeelaWebDev 3 года назад
@@hiteshkumar7625 That depends on your requirement. If you want you can save.
@madhujohn2129
@madhujohn2129 3 года назад
I am looking one thing from you, how to login role based from login section.and show the data or perticular component for the selected login credentials
@asheyacaseyoyuson6849
@asheyacaseyoyuson6849 2 года назад
Hello, is it okay if I dont want to have a token just to avoid the expiration date.
@LeelaWebDev
@LeelaWebDev 2 года назад
Yeah no problem, but it could raise security issues
@asheyacaseyoyuson6849
@asheyacaseyoyuson6849 2 года назад
@@LeelaWebDev Hello sorry again to ask whats gonna be condition if theres no token?
@SaiKumar-tg6ct
@SaiKumar-tg6ct 2 года назад
How to increase expiration time?
@LeelaWebDev
@LeelaWebDev 2 года назад
This was provided by the api. We need to increase from the api response
@SaiKumar-tg6ct
@SaiKumar-tg6ct 2 года назад
@@LeelaWebDev Ok Thankyou
Далее
O'ZBEK VA TOJIKLAR ROSSIYADA TERAKT UYUSHTIRISHDI!
08:41
Difference between cookies, session and tokens
11:53
Просмотров 619 тыс.
Senior Angular Developer Interview (theory)
41:57
Просмотров 17 тыс.
O'ZBEK VA TOJIKLAR ROSSIYADA TERAKT UYUSHTIRISHDI!
08:41