Chapter 6: Authentication with Apollo and React
We have come a long way over the last few chapters. We have now reached the point where we are going to implement authentication for our React and GraphQL web applications. In this chapter, you are going to learn about some essential concepts for building an application with authentication using GraphQL.
This chapter covers the following topics:
- What is a JWT?
- Cookies versus localStorage
- Implementing authentication in Node.js and Apollo
- Signing up and logging in users
- Authenticating GraphQL queries and mutations
- Accessing the user from the request context
Technical requirements
The source code for this chapter is available in the following GitHub repository:
Get Full-Stack Web Development with GraphQL and React - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.