Главная
Study mode:
on
1
Intro
2
Welcome
3
Starter Code & User Stories
4
Send access token with a baseQuery
5
Test the baseQuery requests
6
baseQueryWithReauth wrapper function
7
Test the baseQueryWithReauth requests
8
Fix for useQuery when it doesn't unsubscribe
9
usePersist custom hook
10
Add Persist toggle to Login form
11
Quick CSS addition
12
Persist Login component
13
Set credentials with onQueryStarted
14
Add PersistLogin to App.js
15
Test the Persistent Login State
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…
Description:
Explore JWT Authentication and learn how to persist login state on refresh in this comprehensive MERN Stack tutorial. Discover techniques for implementing JWT access tokens and refresh tokens in React with RTK Query and Redux, and master the art of maintaining app state during page refreshes. Dive into topics such as sending access tokens with baseQuery, creating a baseQueryWithReauth wrapper function, fixing useQuery unsubscribe issues, and developing a custom usePersist hook. Implement a persist toggle in the login form, create a PersistLogin component, and integrate it into your app for seamless user experiences. By the end of this 43-minute video, gain the skills to enhance your web applications with robust authentication mechanisms and improved state management.

JWT Authentication - Persist Login State on Refresh - MERN Stack

Dave Gray
Add to list