Authentication with Apollo and React

We have come a long way over the past few chapters. We have now finally reached the point at which we are going to implement authentication for our React and GraphQL web applications. In this chapter, you are going to learn 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

Get Hands-On Full-Stack Web Development with GraphQL and React 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.