Creating a JWT Refresh Token API in Node JS | MERN Authentication & Authorization | Part 20

preview_player
Показать описание


Enjoy the video!

Thank you.
Рекомендации по теме
Комментарии
Автор

Very nicely explained. Now my concept is clear. Thanks a lot for this tutorial

rajjyotinath
Автор

Thank you very much for the tutorial

I have a question. How can you make it so that when you log in, you are redirected to a different dashboard? For example, if you log in as a customer, the customer dashboard will be displayed. If you log in as an admin, the admin dashboard will appear. Thank you

muhammadarielariadi
Автор

please add more video for integrating refresh token

xdevs-SachinSingh
Автор

How to actually use the refresh token in front end like can u cite an example please....thanks for the series again auth has never been this easy

throwawayaccount
Автор

If i am storing jwt in cookie and i want to set protected route for frontend then how i validate user is login or not in frontend side

AnonymDev
Автор

Great tutorial. I have a question, what is the application of refresh token? What is the use in the frontend, or how can we make you of this refresh token

sharan.r
Автор

Receiving the Error with 401 error code in Postman -
Tried consoling -
Request Body: undefined
Error occurred: Cannot destructure property 'token' of 'req.body' as it is undefined.
Error occurred: Cannot read properties of undefined (reading 'status').
Please suggest how to proceed

heenataneja
Автор

Question: 1. Is it safe to store token in localstorage?, what if someone access the token?,
2. What's in industry? Where do they store tokens?, how actual login is implemented in big company website's like Amazon, Flipkart, Google?
3. Do logout only related to deleting token from localstorage?, or any other thing also included in logout functionality?
Anyone if have idea about the solution to this questions, can address me, reply me, I understood this series completely, just wondering about this questions, I need more security, so is it reliable to depend solely on localstorage?
Thanks!!

prabhjotarora
Автор

Sir i have the status " 401 unauthorized" message invalid token what should i do

harpreeett
visit shbcf.ru