Laravel Sign In with QR Code using Livewire

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 30

  • @rumurudune
    @rumurudune 21 годину тому +2

    Thanks for the awesome video, it's really a helpful one.

  • @ЖеняХристенко-е3ы
    @ЖеняХристенко-е3ы 6 днів тому +1

    This is whats is needed. Thanks!

  • @Rhmtsky
    @Rhmtsky 6 днів тому +2

    I made similar apps for restaurant's e-menu. I just simply put hidden form inputs with auto generated token and user_id each time it's refreshed. I put the e-menu url in the qrcode, whenever a user scans the qrcode, it redirect user to the e-menu url.
    Once the user enters the url, it will automatically submit the form (submit form on load) and create the session

  • @welcometojoin
    @welcometojoin 6 днів тому

    Thank you very much! It is very useful

  • @brianochieng5904
    @brianochieng5904 6 днів тому +1

    Thanks. Is there a package for fingerprint scanners?

    • @LaravelDaily
      @LaravelDaily  6 днів тому +2

      I haven't worked with projects that had fingerprint scanner, so I don't know.

    • @brianochieng5904
      @brianochieng5904 5 днів тому

      @LaravelDaily Web Dev Simplified actually sorted me. ua-cam.com/video/viZs1iVsLpA/v-deo.htmlsi=o-gtrXKYewBYxjVa

  • @bboydarknesz
    @bboydarknesz 6 днів тому +1

    wow, cool!

  • @ifeanyinnaemego
    @ifeanyinnaemego 6 днів тому +2

    So with this method i can log my account out from other devices.

    • @LaravelDaily
      @LaravelDaily  6 днів тому +2

      Yes. Laravel also have a native method for it inside the framework, but we implemented it in our custom way here.

    • @fauxhound5061
      @fauxhound5061 6 днів тому

      Would you kindly add more details on the native way of doing this?
      ​@@LaravelDaily

    • @LaravelDaily
      @LaravelDaily  5 днів тому +1

      Here's the link to the docs: laravel.com/docs/11.x/authentication#invalidating-sessions-on-other-devices

  • @owlookit
    @owlookit 5 днів тому

    Thanks for the video. Just not clear how to make the user previously registered username/password related to logged in through QR code.

    • @modestasmv
      @modestasmv 4 дні тому +2

      The idea here is - our user has logged in on mobile already. Then, when he scans the QR code - that QR code token is associated with an already logged in user on mobile.
      In short - user has to be already logged in on mobile for this to work. Without it - it won't correctly authenticate.

  • @foRsxs
    @foRsxs 5 днів тому

    After scan QR we set user as log in, but page will refresh after 1s not immediately? Maybe use websockets for less load

    • @LaravelDaily
      @LaravelDaily  5 днів тому

      Yes, as I mentioned, the alternative approach is to use something like Laravel Reverb. More work to set up, though.

  • @abdallakaram5376
    @abdallakaram5376 6 днів тому

    Need example about sso one user can login two different app all two apps under the same organization

  • @stojankukrika7242
    @stojankukrika7242 6 днів тому +2

    How do you know which user is loged in? I didn't cover it🙄

    • @pileb
      @pileb 6 днів тому +4

      The user is already logged in on mobile

    • @igoreksazonov
      @igoreksazonov 5 днів тому

      same question

    • @modestasmv
      @modestasmv 4 дні тому +1

      The idea here is - our user has logged in on mobile already. Then, when he scans the QR code - that QR code token is associated with an already logged in user on mobile.
      In short - user has to be already logged in on mobile for this to work. Without it - it won't correctly authenticate.

    • @SingularTechie
      @SingularTechie 2 дні тому

      @@modestasmvinteresting, but what is the reason to login an user that is already logged in?

    • @modestasmv
      @modestasmv 2 дні тому +1

      @@SingularTechie It is not logging in the same user. It is more to pass the session to a new device. Lets say, you are logged in on your phone as you created that account while out in the city. Now, once home - you can either enter your password or log in without using the password at all. This saves time :)
      Ps. It would be really weird to log someone in just by scanning a qr code and not being authenticated. That would be a huge security issue…

  • @UeharaKeitaro上原恵太郎
    @UeharaKeitaro上原恵太郎 6 днів тому

    How do you approach projects with e-commerce involved?