Laravel Sanctum SPA Authentication Explained

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 4

  • @ГенералПолковник-п2ш

    sir, thanks for tutorial, finally i got what i wanted, but i have a question, because of going an extra query for csrf-cookie the queries are taking a litle bit more time, could you show please something maybe like cache or something else to not do extra query on every query fo csrf-cookie, as i know csrf-cookie is active for two hours, thanks

    • @Tuto1902
      @Tuto1902  Год назад +2

      My apologies for the confusion. You only need to make the csrf-cookie request once when you are authenticating the user. Once the user has been successfully authenticated, subsequent requests should automatically receive CSRF protection. So, there’s no need to make the csrf-cookie request after logging in the user

  • @holakonoob
    @holakonoob Год назад +5

    hey if you have a free time can you please to make a full laravle api that has auth + roles and permitions

    • @Tuto1902
      @Tuto1902  Год назад +1

      That's a great idea! I'll add it to my list. Thank you for the suggestion. 👍