Тёмный

118. Authentication - Auto-Logout the user when the token expired - Angular. 

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

Hi Friends
In this video, we will see how to auto-logout the user from the application when the token got expired.
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

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

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@althikk
@althikk 7 месяцев назад
I have a query on logging data, the topic and other all details including some code are able to see in Burp suite tool, so how to hide above sensitive information?
@AnilKumar-ud6pb
@AnilKumar-ud6pb 3 года назад
I have question,for some user it is not forcing the user to logout and for other user it is forcing out and showing them expire screen, please help how come two different scenarios with the same system, anything to be checked on the browser level.
@iconicabhay157
@iconicabhay157 2 года назад
great video
@sudeshkodavoor548
@sudeshkodavoor548 3 года назад
autologout should happen if the user is ideal for this use case what will be ur approach?
@LeelaWebDev
@LeelaWebDev 3 года назад
We can use set timeinterval and listen to the events keypress and mouse move. Then we can reset the interval
@zakirhussainb2381
@zakirhussainb2381 3 года назад
Can we use this in active or inactive user status by admin,when the user logged in and the status is inactive set by admin after logged in, this will work and the issue is the user status is inactive before the user logged in is that work on that place
@LeelaWebDev
@LeelaWebDev 3 года назад
This is hypothetical. You logged in when you are active and immediately set the user as inactive and you are expecting that user to log out. somehow you need to inform the client and send data, without sending data how can you expect logout. There are s many ways to do it. You need to check the token validity in the server, if the token is not valid then you need to send the info so that it will be automatically logged out.
@zakirhussainb2381
@zakirhussainb2381 3 года назад
@@LeelaWebDev can you make video on this please
@LeelaWebDev
@LeelaWebDev 3 года назад
@@zakirhussainb2381 sure I will do when doing node course-related backend. I noted your point
@uttkarshjawalekar4462
@uttkarshjawalekar4462 2 года назад
what will happen if pc shut down or power off
@LeelaWebDev
@LeelaWebDev 2 года назад
It will be logged out automatically
@uttkarshjawalekar4462
@uttkarshjawalekar4462 2 года назад
@@LeelaWebDev Need help i want to logout a user on winow close or tab close but not on refresh
@TeluguCoderReloaded
@TeluguCoderReloaded 3 года назад
Not clear
@TeluguCoderReloaded
@TeluguCoderReloaded 3 года назад
Bruv I said not clear how can u give heart
@LeelaWebDev
@LeelaWebDev 3 года назад
In what way its not clear. You didn't understood the concept or the explanation i made is not understandable. If you didn't understood the concept then you can google it to learn more where you can understand, or if the explanation is not clear, tell me clearly in the comment so that i can clear it. I am unable to understand your one word comments
@sharathmadamraju4086
@sharathmadamraju4086 3 месяца назад
Hi sir, when I do expirationdate - date, the time is increasing.(5138999 to 52.....) It has to decrease right, but in your case it is decreasing. How can I acheive? Please help
@sharathmadamraju4086
@sharathmadamraju4086 3 месяца назад
Hey I got it. I was not storing the expiration date in the local on getting token response. Now I stored date and comparing on refresh. Thanks!
@LeelaWebDev
@LeelaWebDev 3 месяца назад
Super
Далее
Difference between cookies, session and tokens
11:53
Просмотров 627 тыс.
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 294 тыс.
How to Logout from Spring Security - JWT
50:09
Просмотров 43 тыс.
angular session
16:14
Просмотров 9 тыс.
БЕЛКА РОЖАЕТ?#cat
00:28
Просмотров 294 тыс.