What's up guys welcome to my channel. We all know most important feature in every application is authentication. To make that authentication much more secured and make better user experience we need to use refresh and access token based authentication in your app. You might be thinking what is refresh token?, why should we use?, how should we use ?
First let's take a look at older way of authenticating user which is called token based authentication. When user logged in we send a access token which is valid for certain time. When that token expires we have to ask user again to login, Which is tedious user experience. To solve that problem we have to use refresh token.
A refresh token is nothing but a access token but it has life time about 1 or 2 months. Access token has expire time about 10 to 15 minutes. Whenever this access token expire. we don't ask user to login again to get new access token instead we send refresh token to the server here we verify that token and send new access token to the client. with this method user don't have to login again and again. this makes user experience much more easier to user.
To know how to implement refresh token in node js watch this video.
I hope you learn something new today. If you like my work subscribe to my channel and like this video.
Source Code = https://github.com/cyber-wolve/refres...
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
Tags = {jwt authentication node js, jwt node js, jwt node js express, json web token authentication node js, jwt auth express, jwt auth node js express, refresh tokens, mern stack, user authentication, node js authentication, refresh token authentication, access token, refresh token, TomDoesTech, yoursTruly }
Смотрите видео JWT Authentication with Access Tokens & Refresh Tokens In Node JS онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал CyberWolves 18 Апрель 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 28,959 раз и оно понравилось 498 посетителям.