Closed GaraninR closed 2 years ago
Add the word Bearer with a space before the token
Bearer "insert token here"
Unfortunately, the same error
I'm sorry. I've found my mistake: I didn't set the API user role for my user Everything works properly. I close this issue
I'm trying to get orders data via route /api/orders (GET) and I get a response "401 | Error: Unauthorized"
Environment:
I have a valid and active user admin@localnetwork.by with password '123456':
Step 1: I successfully get a token via /token route:
Step 2: I set the token to Swagger for access to the rest of api:
{ width:200px; }
{ width:200px; }
Step 3: Then I try to execute a request to the route /api/orders:
If I get it right I would get a list of orders.
Maybe I did anything wrong?
The rest of the routes of API is not working too. They return the same: Unauthorized.