@@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 :)
Best tut ever for jwt with php
Finally, a new tutorial! :)
Please i need example with react and bearer autoritation please
how to use this token in react js
For me, a bit risky: the password should be hashed.
Hello man.
Actually, from where i will get that $key
you can generate key from this www.scottbrady91.com/tools/jwt website online
Can you explain that key generator page, I'm on that page and I don't know what the key would be
@@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 :)