How to Create Login using JWT Token in PHP

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

КОМЕНТАРІ • 10

  • @msunrl8577
    @msunrl8577 8 місяців тому +1

    Best tut ever for jwt with php

  • @wodzimierzpaus3337
    @wodzimierzpaus3337 10 місяців тому

    Finally, a new tutorial! :)

  • @victorsempereguilabert9127
    @victorsempereguilabert9127 9 місяців тому +1

    Please i need example with react and bearer autoritation please

  • @RupeshkumarSahu-k9t
    @RupeshkumarSahu-k9t 21 день тому

    how to use this token in react js

  • @wodzimierzpaus3337
    @wodzimierzpaus3337 10 місяців тому +2

    For me, a bit risky: the password should be hashed.

  • @HousseinAlDroubi
    @HousseinAlDroubi 2 місяці тому

    Hello man.

  • @royalcreations9378
    @royalcreations9378 6 місяців тому

    Actually, from where i will get that $key

    • @webslesson
      @webslesson  6 місяців тому

      you can generate key from this www.scottbrady91.com/tools/jwt website online

    • @david_mosquera6207
      @david_mosquera6207 4 місяці тому

      Can you explain that key generator page, I'm on that page and I don't know what the key would be

    • @InsaneGuitarist
      @InsaneGuitarist 3 місяці тому

      @@david_mosquera6207 Hi David, the key is something that should be secret. Usually you hide the key in an ".env" file. So the key could be "MySecretKey", and then when it hash with HS256, the user password like "password1234" will be hashed with the string MySecretKey and make a long gibberish password. The key can be generated from the website mentioned above, or you can create your own, the key can be anything, as long it is secret!
      So the longer autogenerated the key is, the harder the passwords will be to hack/guess :)