12. Verifyting an Access Token using a middleware | Node JS API Authentication

preview_player
Показать описание
#JWT #jsonwebtoken #api #authentication #dotenv #bcrypt
In this video we will see how to #verify an #accessToken using a #middleware in #express.

(One FREE project forever 😘)

Support the channel:

References:

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

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

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

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

Legendary, my teacher sucks at explaining this stuff and im grateful theres someone out there explaining things better than my teacher :)

U-Trance
Автор

hey!i have a doubt that do we need to put the token in the verify that i generated during the account creation which can be at any time or when we login in?
btw ur tutorials helped alot!
subscribed ;)

aadarshkhair
Автор

Hi, I am getting WordPress error, "Authorization token does not found"

I am getting error when I login to WordPress, but website is not affected.

Can you help with solution

darshanngful
Автор

@yoursTruly if there are 2 types of login, like admin login and user login, in that case how will we protect the same route?

khushboogoyalkhush
Автор

Awesome series! I have a quick question: would I be able to implement this in a separate Node API if it shares the same "ACCESS_TOKEN_SECRET"?
That way I have one service for authentication, and another one for entities.

lizardking
Автор

may i know, why u prefer use req.headers.['authorization"] instead of req.headers.authorization ?

DeViLThrn
Автор

at 6:46 u are able to use however you are not importing the .env file..how is that possible please explain sir

thomasgeorge
Автор

and how do u protect the routes in front-end like react ? just save the token and check that if token exists in localstorage ? or something else ?

ratnabhkumarrai
Автор

Its not better cookies instead of headers?

antoniosalzano
Автор

Route.get() requires a callback function but got a [object Undefined] i got this error, I don't know why, I like your video but I don't know why I got this error if I put the verifyAccessToken to the get('/'), please help

johnstiger
Автор

plz help getting invalid signature error already following the jwt.verfy(token, secret, callback) process

bismatahir
Автор

sir help me to by pass verification on application game

mact.v
visit shbcf.ru