Understanding Laravel Sanctum 🛡️

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2025
  • Welcome to this new video where we’ll build an application with an API using Laravel and dive into the authentication process with Sanctum (🍪). We’ll start by installing and configuring everything, and then explore the authentication steps using cookies in the context of a SPA (Single Page Application).
    🚀 Here's what's on the agenda:
    Creating a simple Laravel application
    Configuring Sanctum to manage authentication with HTTP-only cookies (🔒)
    Installing and using HTTP clients like Insomnia (or Postman) to test the API
    Handling common errors, including the notorious "CSRF token mismatch" (🤔)
    We’ll also explore the necessary configurations for cookies, CORS, and API routes to ensure smooth communication between the frontend and backend.
    🎯 Goal: To understand and correctly configure authentication with Laravel Sanctum for your SPA applications, while following the best security practices!
    If you have any questions or run into issues along the way, feel free to drop a comment! And I’ll see you soon for more videos on the topic 👨‍💻💡
    #Laravel #Sanctum #API #Authentication #Cookies #WebDevelopment #SPAVideo

ความคิดเห็น • 14