NEXT JS Authentication using Laravel Sanctum and Taking care of CORS

preview_player
Показать описание
#nextjs, #reactjs, #laravel, #laravelapi, #laravelsanctum
The React Next JS Framework provides all the fundamental tools and utilities for building SEO-friendly Single Page websites. For this reason, it is liked and used by many developers.

So in this post, I’m going to use Next JS as the frontend and Laravel as a backend for the purpose of login and authentication. When you are working on such projects it’s essential to learn about CORS ( Cross-Site Resource Sharing ) which I’ll teach you in this post.

The Laravel application here acts as a backend application that is used to save or retrieved the users. And for authentication, I’ll be using Laravel Sanctum Package which will provide all the authenticating utility classes and methods. This Package is also recommended by Laravel to be used for Single Page Applications and Mobile Apps.

My Other Popular Videos

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

there is not any server.php file (7:6 min) in my project

RizwanKhan-ynyb
Автор

This video really helped me . Thank you so much.. One thing problem i am having is .. when i refresh the page the current User information is lost ... it cannot be found any more .. can you help

Askbowe