Главная
Study mode:
on
1
Intro
2
Welcome Discussion
3
Current state of the app
4
Why want a persistent login?
5
PersistLogin component
6
useRefreshToken update
7
Add PersistLogin to App
8
Test the Persistent Login
9
Security Issue #1
10
useLogout hook
11
Add logout to Home
12
Test with no refresh cookie
13
Test with a refresh token
14
Test with an expired refresh token
15
Security Issue #2
16
Adding new state to AuthProvider
17
PersistLogin update
18
Login update
19
Test Trust Device toggle
20
Fix a memory leak
Description:
Learn how to implement persistent user login authentication with JWT tokens in a React application. Discover secure methods for handling authentication without storing tokens in local or session storage. Explore the creation of a PersistLogin component, updating the useRefreshToken hook, and addressing security issues. Implement a logout functionality, test various scenarios including expired tokens, and add a "Trust Device" feature. Master the techniques to maintain user authentication across app refreshes and revisits while ensuring security best practices.

React Persistent User Login Authentication with JWT Tokens

Dave Gray
Add to list