How to Create Login using JWT Token in PHP

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

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

  • @msunrl8577
    @msunrl8577 6 месяцев назад +1

    Best tut ever for jwt with php

  • @wodzimierzpaus3337
    @wodzimierzpaus3337 8 месяцев назад

    Finally, a new tutorial! :)

  • @victorsempereguilabert9127
    @victorsempereguilabert9127 7 месяцев назад +1

    Please i need example with react and bearer autoritation please

  • @user-cq4zk8mw6r
    @user-cq4zk8mw6r Месяц назад

    Hello man.

  • @wodzimierzpaus3337
    @wodzimierzpaus3337 8 месяцев назад +2

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

  • @royalcreations9378
    @royalcreations9378 4 месяца назад

    Actually, from where i will get that $key

    • @webslesson
      @webslesson  4 месяца назад

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

    • @david_mosquera6207
      @david_mosquera6207 2 месяца назад

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

    • @InsaneGuitarist
      @InsaneGuitarist Месяц назад

      @@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 :)