Auth.js v5 Middleware Tutorial & Explanation

preview_player
Показать описание

In this video, we will go over how to set up middleware so you can protect certain routes and make others publicly accessible.

I also go over how to avoid issues when it comes to dealing with the edge environment.

If you enjoyed this video then I would appreciate it, if you can hit the like button and also subscribe. Thanks!

GitHub Repo 👇

Time Stamps
0:00 Intro
2:15 Add the config object in middleware
3:39 Access the pathname and if the user is logged in or not
5:52 Define private routes
6:42 Coding the logic for the middleware function
15:27 Outro
Рекомендации по теме
Комментарии
Автор

Thanks a million times, super grateful. I would love to learn about password reset

chibuzoekwue
Автор

Bro i really appreciate your impactation of knowledge. I will love if you create reset-password video with Auth.js v5

onayemi
Автор

Nice content to understand Middleware with Auth js v5 !
Merci Brett ;)
Git Repo link not correct (auth-v5-tutorial !== authjs-v5-tutorial) ^^

marvikfr
Автор

Bro, can you provide the github repo? Your link is not working.

promiseghoshchowdhury