AI Engineer - Learn how to integrate AI into software applications
AI, Data Science & Cloud Certificates from Google, IBM & Meta
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This advanced tutorial builds a React and Redux login flow using JWT access and refresh tokens, secure cookies, protected routes, and automatic reauthorization. It also demonstrates authenticated user requests and RTK Query caching.
Syllabus
Intro
Welcome
Starter Code and Dependencies
Begin Redux: authSlice
baseQuery
baseQuery with re-authorization wrapper
apiSlice
Extend the apiSlice to auth
Configure the Redux store
Begin React: index.js
Layout component
Public component
Redux: Export useLoginMutation
Login component
RequireAuth component
Welcome component
App.js routing
Node.js Backend Review
Test the Login flow
Redux: Extend the apiSlice to users
React: UsersList component
Update App.js routing
JWT Auth Flow and RTK Query Cache
Taught by
Dave Gray