Implement User Login through an API call using React and Redux Toolkit

preview_player
Показать описание
In this tutorial, learn how to implement user login through an API call using React and Redux Toolkit.

If you want to learn about how to persist user login in redux toolkit with redux persist then watch my below tutorial

If you want to support me with a donation🎁

If you have any issues you can contact me:

For paid projects, contact me

Special discounts for students who are looking for paid courses to better elevate their skill level

GET Rs 5000 discount on Azad Chaiwala Php Web Development Course

GET Rs 6000 discount on Azad Chaiwala Mobile App Development Course

GET Rs 5000 discount on Azad Chaiwala Python Programming Course

Music used in this video

1- Fragments by AERØHEAD

Creative Commons / Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

2- Lifting Dreams (YouTube Audio Library)

3- Dreamland (YouTube Audio Library)
Рекомендации по теме
Комментарии
Автор

Thank You so much... I was looking for this kind of video only.... Very Usefull

akhil
Автор

Great video bro.. I have used DRF for backend and next js (frontend).. Used custom authentication and login with redux is integrated! Thank you so much! It took me 2-3 days to Integrate for my own project and found this video very helpful..

lfctimes
Автор

Great and easy way to understand without voice 😆

RakibHossain-hocy
Автор

is putting all the user data in the localStorage safe ?

JohnDoe-tovr
Автор

Great work....please provide sorce code link too

Manoj
Автор

Great, thanks, dude. May I ask you a question, is necessary react-readux? I mean, is not redux-toolkit enough?

Ls-xbbn
Автор

Hi) Thnx for tutorial )What does "user/loginUser' in the 6 row of UserSlice mean?

lucky_bus
Автор

why do you have to add e.preventDefault(); in handle Login event ? - I'm trying to code the same and remove it, but it make a bug that I can't navigate to Home page !
By the way it still help me alot, great video !

ThaiNguyenDevOfficial
Автор

why react thunk if i can login user from component and set user into localstorage

braintricker_soft
Автор

Where you kepted your credentials like email and password ?

tyermgp
Автор

When the website is refreshed after logging in, will the data be lost or will it remain?

beverlyvladislav
Автор

Hey, i have a small doubt...After getting token, where should i store it?

aashi
Автор

sir.. what is the need for local storage then?you can get the data from the backend only

somnathbiswas