JWT Authentication - Persist Login State on Refresh - MERN Stack

JWT Authentication - Persist Login State on Refresh - MERN Stack

Dave Gray via YouTube Direct link

Set credentials with onQueryStarted

13 of 16

13 of 16

Set credentials with onQueryStarted

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

JWT Authentication - Persist Login State on Refresh - MERN Stack

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Welcome
  3. 3 Starter Code & User Stories
  4. 4 Send access token with a baseQuery
  5. 5 Test the baseQuery requests
  6. 6 baseQueryWithReauth wrapper function
  7. 7 Test the baseQueryWithReauth requests
  8. 8 Fix for useQuery when it doesn't unsubscribe
  9. 9 usePersist custom hook
  10. 10 Add Persist toggle to Login form
  11. 11 Quick CSS addition
  12. 12 Persist Login component
  13. 13 Set credentials with onQueryStarted
  14. 14 Add PersistLogin to App.js
  15. 15 Test the Persistent Login State
  16. 16 Terminology 'labels' vs 'cache entries': When different values are placed here, different caches are created. In the upcoming 'Refactor' chapter 12 video, we insure all queries use the same cache en…

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.