-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
In Chapter 10, we built a complete CRUD API with Express, Prisma, and PostgreSQL. In Chapter 11, we secured it with JWT authentication, Argon2 password hashing, role-based access control, and refresh token rotation. The backend is complete, but it has no client. Nothing yet calls those endpoints.
In this chapter, we build the React frontend that consumes our authenticated API. Along the way we deal with CORS configuration and the token refresh race condition, a concurrency bug that can log users out while their session is still valid. By the end, you will have a complete full-stack application where users can register, log in, create posts, and manage their profiles, with authentication handled across the client and the server.
In this chapter, we are going to cover the following main topics:
Change the font size
Change margin width
Change background colour