ReactJS Ecommerce Part 6: Private Route in ReactJS with Authentication for Admin | Axios Interceptor

preview_player
Показать описание
In this video, I have taught how to create a private route or protected route in React JS with authentication where we checking the authentication using AXIOS Interceptor by sending api request that its authenticated or not. | Laravel 8 API Sanctum.

Рекомендации по теме
Комментарии
Автор

Nice video i like your all video keep it up :)

adeelnazir
Автор

please sir make full ecommerce project react with laravel, it was nice video sir,

sujonpramanik
Автор

This video is so great! But I have stocked at accessing admin/dashboard after doing everything and I can not access admin/dashboard. What can I do pls? @Funda Of Web IT

mysuccessword
Автор

Very helpful video.
Thanks. Brother, could you please help me with react router v6 ?

abusayeed
Автор

hi.. Where did that 2 other localStorage variables "role" and the other one come from?
did i miss something?
I can't see that part was setup in the video..
thanks for the replies

iantriessomething
Автор

sir im stack in Lodding... page, probleme of Unauthorized i already change it to status

roxoorrt
Автор

@
Funda Of Web IT = can you teach us how to place the role and the other localStorage variables in this video?

iantriessomething
Автор

After adding loading code its goes to home page always when url admin/dashboard

reluxworldmusic
Автор

Hello,
the [return Promise.reject(err)] didn't work for me, but I solved it with a simple [return err];
EDIT: in fact, Firefox displays the errors in the browser, so the redirection is stopped by this display "Unhandled Rejection (Error): Request failed with status code 401". With Chrome, the error isn't displayed so everything's ok.
But this is real problem for firefox users. Maybe those errors only display in development and not in production state ?

yannpollet
Автор

can anyone explain how these two things work? function AdminPrivateRoute({ ...rest }) and <Route
{...rest}. What is the function of {...rest} here?

ChafiullahDigitalMarketing
Автор

i can still access the dashboard and am logged out.How do i solve this

prog_ramming_brains
Автор

[AdminPrivateRoute] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>
this error is popping up

AbhishekPal-rigr
join shbcf.ru