last day (15 days later) » 

12:48
0
A: Laravel + passport: Facing issue 401 Unauthorised

Mohammed AktaaDid you send access_token in your headers like this: $.ajaxSetup({ headers: { 'Authorization': "Bearer your_access_token", } });

Yes I did that. Still facing issue.
Please can you check it from network in you developer tools to see if it included correctly in headers
I am using postman, so yeah its included. Moreover if I am using same request on my local it's working fine.
Okay no problem, but where you save your access_token after login?
In the database. And I am not doing that. Its passport who is doing it.
12:48
So you don't understand how it works. Can you send just how you send token with ajax request?
Attached image in the question.
Hi
Please share your code please
Hello Mohammed
It's a huge codebase and it's against security policy to share the whole codebase. But i can share the code snippets if you need any to resolve this issue for me.
Thanks for helping me out.
just where you send access_token
okay
I have attached screen shoot in the question
12:51
that's what i need
can you check if Token initialized
I am not able to debug it as the solution is working fine on my local machine.
just hover it and it will show you popover
When I am deploying the solution on the shared hosting env. at that time I am facig issue.
do you have any desk or team viewer
what issues?
Unauthorised one.
12:55
I can't help because i don't see the problem
please if you can share your screen that's will be good
Sorry. I am also not able to provide debug info as solution is working fine on my local machine
please forget your local machine
in production every thing diffrent
Yup.. :p
I can share my screen on skype?
yes you can
live:7d5602911258f599

last day (15 days later) »