Open NuclearGear opened 4 years ago
Check the headers of your request in Postman. Specifically set the 'Accept' key to the value 'application/json'
Hi @caleboki , thanks for your reply, I set the Accept Field to "application/json" in the Request then I get a json result, but the endpoint always result "message": "Unauthenticated.".
It returns "message": "Unauthenticated." because you are not logged in. What result do you expect from it? to log in, send a POST request to the login endpoint passing in your login credentials
It returns "message": "Unauthenticated." because you are not logged in. What result do you expect from it? to log in, send a POST request to the login endpoint passing in your login credentials
I get the details of result that "user not found" when I replace "Auth:api" to "jwt.auth" in controller,
similar situation right now
Very same problem with me, can't figure this out until now. Can someone help? Thanks
Instead of auth:api
use auth
middleware.
I dont know whats happening though
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Subject of the issue
I created a new laravel project and do the requirement steps that listed in the "quick start" of documentation. But I use PostMan or CUrl post a request to any endpoint in AuthController such as localhost:8000/api/auth/logout or localhost:8000/api/auth/me then got a result of login page and redirected to http://localhost:8000/login. But localhost:8000/api/auth/login is working.
Your environment
Steps to reproduce
Expected behaviour
Return current result
Actual behaviour
Return the login page