User Authentication with Apollo Server V3, MongoDB, GraphQL, and JWT

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



Hey it's Cooper, make sure to subscribe for more full stack development content in the future!

In this video we do an in depth setup of creating an Apollo Server capable of registering / logging in users. This login and register functionality can get tricky at times, but hopefully this video provides a great starting point for creating the backend to your applications. Subscribe for the future video I plan on making where we create a React application that handles the users tokens, allowing "user only" functionality (only allow people to do things if they have a token for example).

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

Dude I was looking for a quick tutorial and you were excellent. You just won a new subscriber. Keep up the good work!

hyacinthehamon
Автор

Thanks, Men
you helped me pass my interview

williamNshorts
Автор

Underrated channel !!! A genius explanation...

rajukadel
Автор

Hey Cooper Codes! Excellent tutorial, I followed it to the end. I have one question though, you hadn't gone over how a user would log out. I was wondering if you could give a brief summary of the process that needs to happen for the user to log out. I can figure out the user deletion part as that isn't very difficult, but for logging out, how does it work for the JWT token?

rohandatta
Автор

Very good tutorial, thanks from France !

wk
Автор

Thanks mate! was stuck on a very bad error from a week and just figured that I needed to add _ before doc haha, saw some old videos and no one did this maybe it was after the updated anyways, Thanks! Great video!

rezade
Автор

This channel is a sleeper, god you teach so well

estrenhus
Автор

One thing I've noticed with pretty much all of these types of tutorials, is the failure to mention how to protect specific resolvers, due to the nuances of using the context argument. An example being, you have a news site, all users can access the index page, but only specific users that are logged in can access individual articles. So you want to protect the individual news article resolver. While these videos are helpful, 'protecting' routes is equally important as demonstrating how to set up user authentication. So please, if you have the time and knowledge, you'd be doing a great service to update this video to include that. Thanks.

tudorabw
Автор

Very detailed and well explained. Thank you

hamzahahmad
Автор

Go look at where ? Where is the video link ? Can you share ? Please provide full information 2:13

digiartpassion
Автор

Thanks a lot for your amazing video! Just a question, at some point you add an auth middleware, how can we use it in this project?

juliensebag
Автор

why you store jwt token in DB with user? the main idea of jwt is that you can easily check if token provided by user is legit and you don't need to store it and update in DB

itmax
Автор

Cara faz muito tempo que estou procurando um conteúdo desse tipo. Obrigado.
Guy, It's been a long time such contents about this, thank you for that.

userUndefined
Автор

You have not shown the cookie stuffs which is actually necessary.

sowmocoding
Автор

Great series, I hope there's more to come. I'd love to know how to do something like a simple blog. I have users, I have posts.. I have users able to log in (from following this video) but I don't know how to assign a user to an article. How do you keep the user logged in and say "ok, you are user MARIO and you have permission to write posts. When you submit this post you will be the author". I can't find how to make this work. Any help would be great :)

rawrbearmedia
Автор

the frontend part with verification would be super helpful

MB-fcnd
Автор

Where to pass that verifytoken middleware to verify token

editingtuto.
Автор

This is AWESOME!! U are the MAAAN!!
LIKE AND SUB

vr
Автор

With help of UseAuth context. And useLocalstorage,

rmt
join shbcf.ru