Module 5 Introduction
This is an introduction to the work we'll be doing in Module 5.0.
Get the project source code below, and follow along with the lesson material.
Download Project Source CodeTo 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 single-time purchase. Already have access to this course? Log in here.
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.
[00:00 - 00:11] 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.
[00:12 - 00:28] 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.
[00:29 - 00:35] Is there a way that we can persist a user's login session in the browser? Yes, we can accomplish this with cookies.
[00:36 - 00:54] 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)