Module 5 Introduction

This is an introduction to the work we'll be doing in Module 5.0.

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

This lesson preview is part of the TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL - Part Two course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL - Part Two, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course TinyHouse: A Fullstack React Masterclass with TypeScript and GraphQL - Part Two

In the last module, we've made it capable for a user to sign in with their Google account in the TinyHealth application. However, there was one particular concern. When we were to refresh a page or close the browser, close the tab and come back, the user's login state is effectively removed. And though the user can login again by going to the login page and signing in with Google again, I can get pretty repetitive pretty quickly. Is there a way that we can persist a user's login session in the browser? Yes, we can accomplish this with cookies. In this module, we'll talk about persistent login sessions with cookies, compare local storage, session storage, and cookies, utilize a cookie on our client to persist login state, discuss and see how we can help avoid cross-site request for the attacks. (upbeat music)