React Native Authentication | React Query

Опубликовано: 16 Октябрь 2024
на канале: Jon Peppinck
3,718
64

0Learn how to setup authentication to secure your React Native application with the help of React Query and Axios. We create a register and login page and upon logging on, future API requests will have the JWT attached.

--------------------------------------------------
Recommended Udemy courses
--------------------------------------------------
NestJS - Zero to Hero: https://tinyurl.com/3rxsz669
React - The Complete Guide: https://tinyurl.com/2t6v5yeu
Angular - The Complete Guide: https://tinyurl.com/4h5rmpsj
React Native - The Practical Guide: https://tinyurl.com/3wzmdzht
Docker Mastery (with Kubernetes + Swarm): https://tinyurl.com/yeymdnhn

NestJS API code: https://github.com/Jon-Peppinck/messe...
React Native code: https://github.com/Jon-Peppinck/faceb...

00:00-Introduction
01:26-React Query
02:56-Demo
03:58-NestJS tweaks (CORS, user)
05:15-Refactor screens
09:20-Input form component
13:20-Register Screen UI
20:00-Login Page UI
22:15-Auth Models
26:52-Axios setup
31:00-API requests - Auth
34:22-Auth context
47:05-Auth screens functionality
58:30-Axios Intercepts - Attach JWT to requests