Closed hopewise closed 8 years ago
Hi @hopewise. Which HTTP method did you use when you try to request a token? I used POST
request. And it works fine.
curl -X "POST" "http://mylumenapp.local.dev/auth/login" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "email=johndoe@example.com" \
--data-urlencode "password=johndoe"
Here's some good resource you may start with:
Ah, OK, I used GET.. Thanks allot for the links.. On 9 Mar 2016 13:23, "Krisan Alfa Timur" notifications@github.com wrote:
Hi @hopewise https://github.com/hopewise. Which HTTP method did you use when you try to request a token? I used POST request. And it works fine.
curl -X "POST" "http://mylumenapp.local.dev/auth/login" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "email=johndoe@example.com" \ --data-urlencode "password=johndoe"
[image: Nice response] https://cloud.githubusercontent.com/assets/3734729/13633808/f8b5123a-e623-11e5-89d5-6d637dd9ca56.png
Here's some good resource you may start with:
- https://laravelista.com
- https://laravel-news.com/blog/
- https://murze.be
- https://laraveltips.wordpress.com
- https://laracasts.com
— Reply to this email directly or view it on GitHub https://github.com/krisanalfa/lumen-jwt/issues/1#issuecomment-194248636.
You're very welcome sir.
Hello @krisanalfa
I've reviewed the app.php, so, there were so many missing bootstrapping, thanks for the great work!
I could pass a token, and jwt.auth has worked, however, I got error when tried to
/auth/login
Mainly I will be using lumen for APIs, so I will not be logging into it, however its curiosity to know why its not working.. I think I have to dig more in the lumen& laravel architecture, do you know good resources links?