React Login with Apollo Server, Context, JWT (Apollo Server Tutorial)

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


In this video we create a full authentication system with a React frontend and an Apollo Server backend. We use React Context, Apollo Client, Apollo Client Hooks, and more to create the full system overall!

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

man as im watching the video im like "damn who is this guy he probably has like 300k+ subs" and then i saw just under 500 and im like
dude you're a natural, im watching ALOT of tutorials on youtube and i must say your code flow is exceptional.
much appreciated!

noymorgenshtein
Автор

Just wanted to say your tutorials are the absolute best and every single one ive followed i've been able to jump right in and add my own features thanks to your explanations of the tech stack and functions.. I feel like I have such a hard time starting from scratch but once i have simple examples of functionality its so much easier to port them over into other features!

Clawwind
Автор

i watch a shit ton of tech youtube, i must say i am super suprised that you only have 1K subs. I love the indepth content thats more on the advanced end of things. keep up the good work my man

aaronabuusama
Автор

Wow. Your channel is super underrated Cooper! The tutorials you make are extremely well made, and the way you teach are great!
Keep up the great work, man!🤝

MrKnotte
Автор

Dude, you have uploaded this just a day before my deadline... You are awesome, thank you for your efforts. (Both of your videos related to this content are great)

uguryldrm
Автор

Epic tutorial. Really saved my butt on a project where I got really stuck and lost in the weeds on auth

birdappdotrip
Автор

It would be better if you can provide the source code. Sometimes, I can't find the error that I made. So source code would really help me with that problem.

AlejandzZ
Автор

That's awesome.
I wanna have teachers like you in my college.
Thank you so much for your videos!

МаксимКуриленко-ую
Автор

Great tutorial! It's been really helpful. Looking at the Apollo Client documentation, you can actually use the "onCompleted" callback (instead of the "update" function) for the "registerUser" and "loginUser" mutations.

laurievilleton
Автор

Thank you very much for this tutorial!
could you please do a tutorial about errorLink and how to refresh access token after expiration?

talascase
Автор

Would you recommend backend user auth video first or after this video? or wont it be necessary to complete the content of this video? Thank you !

Thomas-noek
Автор

That's bad idea to check token expires because we can paste in localStorage any not expired token. We can check token expired error from server

vladyslav_developer
Автор

Can someone explain to me why the console.log that we added to the NavBar to see the user info in the local storage returns: username, email, token when loggin in, and user_id, email, iat and exp on reload of the page?

jccorman
Автор

Hi Cooper. Great tutorial & explaniton, Could you share the repo of this part, cause Im getting this error "ReferenceError: localStorage is not defined
" I can't figure out this problem.

armandosanchez
Автор

19:47 is that ok to store jwt in local storage ?, im scare if somewone see it and use it for auth

afickredox
Автор

The best. I have to login to hit the like and subscribe buttons

MrHtrlee
Автор

high quality explanation, thank u dude

afickredox
Автор

Just what I needed. Thanks for making this video. @CooperCodes

richienabuk
Автор

What about using Apollo Client instead of React Context API for storing user data?

MrBrownC
Автор

I really like your videos and have subscribed! I applied this to an existing project I have and keep getting a 431 Header fields to large error. Do you have any content on that?

chriswilliams