14. Generating Refresh Tokens | Node JS API Authentication

preview_player
Показать описание
#JWT #jsonwebtoken #api #authentication #dotenv #bcrypt
In this video we will see how to generate a jwt #refreshToken which will be used to generate a new pair of #accessToken and refreshToken.

(One FREE project forever 😘)

Support the channel:

References:

———————————————
More useful videos
———————————————

———————————————
Other useful Playlists
———————————————

———————————————
What I use
———————————————

#yoursTRULY #tutorial #howto #android
Рекомендации по теме
Комментарии
Автор

Hey man, just wanted you to know that you helped me a lot with your knowlegde. Dispise being a small channel your content is top notch. Thank you. Love from Portugal

micaelvieira
Автор

I had to subscribe because this topic is at the top of my wanted list.
Greetings from Tanzania 🇹🇿

raymondmichael
Автор

See, this is the good part, Pecker

...
This is when the job gets fun!

rogercolque
Автор

Great video, thanks for sharing. I have a couple of questions about your setup:

What font and theme are you using? I've been looking for a decent cursive font!

What is the vs code extension you are using to test the api?

hm_webdev
Автор

Hi Mittal, wanted to know which vscode extensions are you using for coding on JavaScript or PHP language. I mostly wanted to know which theme are you using? Can you also make a video on Visual Studio Code Extensions you are using. Thanks for your efforts.

SurajitBasak
Автор

good video. are you using a package for the "createError" parts of your code?

mahditalebi
Автор

Error: Bad "options.expiresIn" option the payload already has an "exp" property . pls help me

NguyenThang-tphk
Автор

Which font are you using in your editor? Is it Operator Mono?

SurajitBasak
Автор

I have to develope two different systems with the same data model, one for a web application and one for the android application, so I will use the same API. I was thinking on applying this logic: 1) web application, save the refresh token in session. 2) android application, save the refresh token in SharedPreferences. Then I'll have to make always a verification on refresh token and get the id of the user that is using the API. Is this a good approach? In this case we will have always a local variable and a copy on server (on redis) of reresh token. Thank you for your documentations.

imtiger
Автор

Is this necessary when your API and Front-end will run on the same server/domain?

christianangelomsulit
Автор

hello bro. You can give me a font in code I try to find it and no result hichic. Thanks

nhathao
Автор

what gonna happnd aftre 1 year when the refresh token expire, and what i need to do aftre the refresh token expire

Fantasia
Автор

Sir how to secure jwt and access tokens

mukeshkumar-gdvk
Автор

I see that you also refresh the refresh token, why? if you do that, your refresh token is never going to expire

xenizs