How to create Protected Routes and Authentication with React Router V6 2023

How to create Protected Routes and Authentication with React Router V6 2023

Kodie

1 год назад

74,203 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@holakonoob
@holakonoob - 19.05.2023 17:18

heyy kodie how about make a simple tutorial that is in ts not js and handle auth via jwt cookie not token to be more secure then use R.R.D v6 to protect the routes

Ответить
@Sylar7773
@Sylar7773 - 22.05.2023 07:23

Thank You so much!!!

Ответить
@retrabaud-it
@retrabaud-it - 24.05.2023 10:21

yo bro

thank u sooo much, i every day look yt, and try to learn something new, and u speak very easy for me! (sorry for my eng)
gl bro at ur way!

Ответить
@gustavostarace1252
@gustavostarace1252 - 25.05.2023 16:20

Great content, thx!

Ответить
@tanercoder1915
@tanercoder1915 - 28.05.2023 14:34

I enjoyed the video and your accent, as well as learned from you

Ответить
@frankie_goestohollywood
@frankie_goestohollywood - 06.06.2023 22:39

Excellent content!!!!! Thank you very much 🤓 I would love to see another tutorial with your implementation of local storage.

Ответить
@isaacjon
@isaacjon - 17.06.2023 19:03

Great content. Please release a video about refresh and access tokens

Ответить
@VayunEkbote
@VayunEkbote - 07.07.2023 10:21

I suggest that you make code along tutorials, with more catchy thumbnails. Your content is great, you will grow fast.

Ответить
@raheelafzal5406
@raheelafzal5406 - 16.07.2023 12:08

your content is amazing seriously. i learned so much from this single video of yours,

Ответить
@jonasmunkchristensen7384
@jonasmunkchristensen7384 - 18.07.2023 13:58

Cool video! Simple and well explained! It would be very helpful to see an implementation with local storage as well as role-based authorization. Regardless, thanks for the awesome content!

Ответить
@njordhoder
@njordhoder - 04.09.2023 14:05

This only dynamicly shows the menu items. If a user is not logged in it still can go to the private route by typing it in. There is no redirect.

Ответить
@justin9494
@justin9494 - 11.09.2023 14:36

How do we add google auth to this?

Ответить
@justin9494
@justin9494 - 11.09.2023 14:42

Thank you! The map part is genius

Ответить
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu - 05.10.2023 06:01

thank you

Ответить
@ankoh69
@ankoh69 - 07.10.2023 20:16

rooutah

Ответить
@natnaelhailu-com
@natnaelhailu-com - 11.10.2023 15:27

Thanks for the helpful tutorial!!!

Ответить
@IXBoyI
@IXBoyI - 13.10.2023 19:51

why on refresh it does not hold the private links? It resets and I have to click on "login" again so they pop up

Ответить
@DankoKralski
@DankoKralski - 22.10.2023 12:06

Amazing video! I love how there are people like you that go straight to the point and explain in plain English. Thanks a lot for the video! PS: Better teaching methods than my university (will definitely suggest to my friends)!

Ответить
@FreddyF1977
@FreddyF1977 - 23.10.2023 18:14

Nice, simple, to the point.

Thanks!

Ответить
@georgekopadze791
@georgekopadze791 - 08.11.2023 03:03

Good luck with your channel. Liked your content

Ответить
@goffardeveloper2056
@goffardeveloper2056 - 12.11.2023 11:59

how to add role user sir

Ответить
@zstudio6127
@zstudio6127 - 17.11.2023 13:37

thanks you for this tut

Ответить
@alexmuiruri502
@alexmuiruri502 - 07.12.2023 08:14

Hi @kodie,

Great content here. However, I'd prefer to show the login page if a user tries to access a private page

Ответить
@investia_tech
@investia_tech - 14.12.2023 15:26

Good work!

Ответить
@alexandrejunior4775
@alexandrejunior4775 - 11.01.2024 17:49

It's amazing! thank you very much!

Ответить
@yinkaenochadedokun467
@yinkaenochadedokun467 - 06.02.2024 11:30

Great and concise 👍

Ответить
@vPopovPHX
@vPopovPHX - 06.02.2024 17:25

This video is just pure gold! Straightforward, concise, without any useless information. Amazing!

Ответить
@johnmarynwanze3713
@johnmarynwanze3713 - 04.03.2024 02:01

i love it great knowledge been passed here, thanks a lot

Ответить
@samontefrankamirsong.5474
@samontefrankamirsong.5474 - 07.03.2024 03:23

You deserved more subscribers. You are a good example on what the developers should follow. I haven't followed yours but I created something that is similar and in tsx.

Ответить
@mahletmahi-r5e
@mahletmahi-r5e - 14.03.2024 21:48

yes pls do that user key and session expire thingi we do want it

Ответить
@hankpham4431
@hankpham4431 - 17.03.2024 12:05

can you make a new video on how not to make user logout whenever the page refresh?

Ответить
@ASOCMARCTKD
@ASOCMARCTKD - 21.03.2024 00:37

How can I Implement roles of users?

Ответить
@webhybrid809
@webhybrid809 - 24.03.2024 15:20

can you help me to do same thing in next.js,
i have to do with user role based , their tho 2 user role , so how to do in next.js with typescript?

Ответить
@itsLarryAlright
@itsLarryAlright - 31.03.2024 18:23

Please I need a tutorial on how to use localstorage with this

Ответить
@yourlinuxguy
@yourlinuxguy - 11.04.2024 18:50

Really nice video, Thankyou.

Ответить
@alonsoestevam
@alonsoestevam - 22.05.2024 01:31

Why are the extension files `.js` instead of `.jsx`?

Ответить
@balajig3306
@balajig3306 - 13.06.2024 01:37

Nice ❤

Ответить
@AIwithChinmay
@AIwithChinmay - 17.06.2024 18:09

straight and easy to understand thanks for the video.

Ответить
@vaibhavdani4470
@vaibhavdani4470 - 12.07.2024 17:23

Gold Gold Goldberg !! Happy to find this channel !!

Ответить
@theonlymaster9374
@theonlymaster9374 - 17.07.2024 06:22

This is a super useful video!!!, went through it, understood how everything is done, great video!!!

Ответить
@destinyforeveryone3659
@destinyforeveryone3659 - 08.08.2024 05:38

This video was exactly what I needed!! I've been confused with authentication and the bunch of different ways to do it and a video that cuts all the extra stuff and shows you the basics of how it works was perfect. Thanks so much, hope you make more videos was sad to see this was your latest on in a year.

Ответить
@dchudziak
@dchudziak - 27.08.2024 14:30

Isn't this method easy to bypass? User can easily change ahte isAuthenticated state or isPrivate consts. Is it okay to protect client routes like this and just protect private data on the backend?

Ответить
@JasonJamesMoore
@JasonJamesMoore - 29.08.2024 20:36

Is it possible to work things this way using createBrowserRouter. Interested to understand this more, and see if I can use child routes with this kind of setup.

Ответить
@levinmwanganyi3929
@levinmwanganyi3929 - 20.09.2024 11:36

Thank you

Ответить
@MohammedHusainmobikira
@MohammedHusainmobikira - 30.09.2024 10:42

sir you should create this in full playlist format that we can get more clearity for beginners its bit hard to understand everything, you should also connect it with backend that what routes are set in backend etc.

Ответить