JWT Authentication in GraphQL Apollo Server | GraphQL Context | Tutorial # 7

preview_player
Показать описание
n this tutorial # 7 of the GraphQL series, we will explore how to implement JWT (JSON Web Token) authentication in a GraphQL Apollo Server. JWT is a popular method for securely transmitting information between parties as a JSON object, and it is widely used for user authentication in web applications.

Topics Covered in Course:
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
- What is GraphQL?
- Why we should use GraphQL in 2023?
- GraphQL vs. REST comparison
- Create a Recipe Application with all basic features
- Setting up Apollo Server
- GraphQL Type Definitions / Schema
- GraphQL Resolvers
- JWT Authentication & Error handling
- Basic GraphQL queries
- How to create a GraphQL API using NodeJS and Apollo Server
- GraphQL Language: Types, Queries, Mutations, Scalars, Enums, Unions
- How to improve a GraphQL API and best practices.

#graphql #nodejs #apollo #graphqlcourse #api #restapi #apolloserver
#jsonwebtoken #jwt
Рекомендации по теме
Комментарии
Автор

Simple, clear, and to the point. Thank you and great work! Subscribed.

ajoygonsalves
Автор

I tried to use your work, but when I register I get a message that the user is not authorized. but how do I make authorization if the user is not yet registered?

MusiienkoVS
Автор

How i can descibe!. but i did not watch any of the video. just checked the code on gihub. you have very good hand on coding. i understand the whole knowing with in 15 mins
thankyou. I want to know how much experince do you have as Js developer using all these technologies

cryptonews
Автор

Is there a github repo where I can view the whole thing?

YJMystic
Автор

to create new user and login just change this if condition in context.js
if (
req.body.operationName === "signup" ||
req.body.operationName === "login"
) {
return {};
}

HemantJadhav-vvrx
Автор

i'm getting user not authentiated while trying to register and you have used this
if (
req.body.operationName === 'CreateUser' ||
req.body.operationName === 'Login'
) {
return {};
}
where to pass Login in apollo server unless we don't pass it always shows User not authentiated

akasha
join shbcf.ru