@nite You should only be using JWTs server to server. If you generate JWTs client side then they’re not secure, as anyone can then see your signing key and algorithm, and create their own JWTs.
Laravel App connecting to a JWT protected Laravel API
I have to develop a JWT protected API with Laravel. In order to do so I will probably use the following package that seems to be quite popular for this https://github.com/tymondesigns/jwt-auth
Now, this API will be used by third parties AND by another Laravel App that I'll have to make. This Laravel App will have to basically only function as a frontend, and will have to utilize the API for authentication and database operations.
Is this something that can be done ?
How would I use my Laravel API from my Laravel frontend app ?
Are there other solutions that I should consider for this ?
My company REALLY wants me to use JWT for authentication but to my understanding Passport doesnt really use that (and its token payload cannot be customized)
Thanks
Please or to participate in this conversation.