#11 - Laravel Sanctum and Vue.js - SPA Authentication - User Account Login

Поделиться
HTML-код
  • Опубликовано: 25 фев 2021
  • In this video you will learn how to install and configure Laravel sanctum in your project for API authentication and you will also learn how to make a successful login functionality using Laravel Sanctum and Vue JS.
    For support please subscribe to my channel and hit the bell icon to not miss any updates and uploads.
    If you enjoyed watching the video and see the content useful please like the video and share it with your friends.
    For suggestion or requests or any problem please feel free to leave a comment on the video or contact me via the bellow email.
    Contact: masoudihafizullah@gmail.com
    Resources:
    Laravel: laravel.com/
    Complete Source Code: github.com/hfzm/laravelvue

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

  • @glidebarney3210
    @glidebarney3210 2 года назад

    Thank you for these tutorials, learn so much from chapter 1 to 11. More power and God bless!

  • @kaveeshapathirana2770
    @kaveeshapathirana2770 3 года назад +1

    This is what I was looking for, and thank you for providing the source code as well. keep up your work

  • @user-qe3te2px2b
    @user-qe3te2px2b 4 месяца назад

    Thank you so much, i trired realize sanctum auth more 1 week, bu u helped me by 21 minutes)

  • @shawnxoxo8417
    @shawnxoxo8417 Год назад

    thank you so much !! great video my login code finally worked after watching this video

  • @tysonadeyemi3726
    @tysonadeyemi3726 2 года назад

    Can Sanctum be used with different Guards such as Admin, Vendor and customer?

  • @philipakpan5622
    @philipakpan5622 2 года назад

    Thanks for the amazing tutorials. Please how do i go about password reset, update?

  • @OneMaKGone
    @OneMaKGone 2 года назад +1

    Thank you bro, i have this error if someone can help me please: 401 {"message":"Unauthenticated."}

  • @marroquin92
    @marroquin92 2 года назад

    bro tengo un detalle al hacer logout el post no llega con user() al controlador, por tal motivo el token dice null para borrarlo, y el currentuser tiene los datos

  • @jamols09
    @jamols09 2 года назад +1

    Man the volume is too low though but nice tutorial!

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

    That's Sanctum api tokens authentication not SPA authentication.

  • @sanjohn1753
    @sanjohn1753 3 года назад

    thank you for the video tutorial , am wondering how can we edit user ?

    • @glidebarney3210
      @glidebarney3210 2 года назад

      same style/method as edit employee i think

  • @user-bi3kx5uf6d
    @user-bi3kx5uf6d 3 года назад +1

    Great video) but how do we protect our tokens from theft? Local storage and cookies are not a secure place) In theory, I could steal your token and log in to my computer

    • @kaustubhbagwe6718
      @kaustubhbagwe6718 3 года назад

      I think we can store it in memory every time we log in, but it has a drawback once the tab closed it will delete the token & user data and the user will have to login again

    • @glidebarney3210
      @glidebarney3210 2 года назад

      vuex is the way to go

  • @softwareEngineerKunwar
    @softwareEngineerKunwar 3 года назад

    Hello, could you please make Laravel 8 Sanctum and Vue 3.js SPA Authentication - User Account login, with all latest version even bootstrap 5. Thank in advance.

    • @6BEEP9
      @6BEEP9 3 года назад

      It is pretty much the same, just check docs.

  • @KnightYoshi
    @KnightYoshi 2 года назад +1

    Oh no. No no. Never store a user auth/session token in localStorage, that's an XSS vulnerability.

    • @kfh6474
      @kfh6474 Год назад

      What should be used to store the token?