ReactSecurity - Attach a JSON Web Token in an Axios Request

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

If our API endpoints are secured with JSON Web Tokens, we need to get those JWTs to the endpoints when making requests from our React applications. A common way to do this is to send the JWT as an Authorization header.

Let's see how to use Axios HTTP interceptors to send JWTs in our requests for data.
Рекомендации по теме
Комментарии
Автор

Wow, in just 5 minutes you explain such an important feature in React, respects !👍

georgesword
Автор

I was 3 weeks at least looking for this axios request! Everyone is talking about social Auth or something with JWT. I was so sick about these topics.
You're a saint!

alex.noriega
Автор

Amazing, literally amazing, shortest, easiest and best way of implementing this 👑

rabahalishah
Автор

Dude I've been looking for a guide for using API keys with Axios and couldn't find one...finally...and its easy to understand, thank you!

attilakovacs
Автор

short tutorial videos is always my priority to watch and this have all my answers and very concise wow

chembeeragaton
Автор

Briefly and clearly about the Web Token in an Axios Request. Thank you bro!

alekseyberezov
Автор

Just another savior of a React newbie... Thank you very very much!!

asfnobambu
Автор

Found your course through this video, signed up for free and finally figured out my issue I was having after about 20 hours of researching cors, http headers, jwt token. Thank you

ronniesunshine
Автор

I was stuck on how to send custom headers, but after watching I was able to solve it. Thank you

Thinna
Автор

Thanks man!! You’re a legend!! I saw so many videos on jwt but no one explained how to pass token in headers from front end but you did it in just 5minutes. Thank you so much🙏🏻 Was stuck on this issue for a week

aryamantodkar
Автор

Thank you, this actually worked for me!

stanimirnikolov
Автор

Thank you for the perfect explanation! Saved my day.

kozmikpuding
Автор

Nice and concise. Fairly rare to find. Thanks!

aspejcher
Автор

Thank you so much man, it really solved my problem

spiritwrrior
Автор

Thanks, Ryan. that clarifies my queries.

abheemk
Автор

Along with explanation I really like you voice and intonations

mscsvxt
Автор

i love your sound . i love your react course, and i love you so much

kylehenson
Автор

Thank you for saving my time and job ❤️

harishkumarp
Автор

Thank you for making it so easy to understand. But if you can also help with refreshing this bearer token, verifying on every request

priyankasharma-ivmu
Автор

What's the best way to store the bearer token? Can it be stored in context some how and we use a custom hook to grab the bearer token every time? Some places I've read have mentioned that storing the bearer token in local storage or a cookie is a security flaw because then it's exposed to other websites you visit.

jmoast
visit shbcf.ru