Create Auth hook - Session-based authentication, Login & Logout | Laravel REST API and Next.js #7

preview_player
Показать описание
In this video, we will add to our custom Authentication hook, login and logout functionality.

Support me:

Join this channel to get access to perks:

Useful Links:

Auth packages:

Playlists:

Timestamps:
00:00 Introduction
00:25 Session-based auth explanation
01:30 Add Login
06:07 Add Logout
07:24 Add useEffect()
09:39 Outro

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

Thank you sir, how to create session multi roles?

nfitec
Автор

isnt the middle ware for user to be 'auth' and redirect to dashboard

ubaid_beast
Автор

i cannot log out, it logs out for like a second, then reloggin right after

yoNikma
Автор

also how do i make protected routes with this setup?

yoNikma