I need to change Authorization header to my custom Authorization header called X-OAuth-Authorization. can I do that? Because I want to use Authorization header for my middleware authentications. What should I do?
There is a Laravel Passport guard, I think it's called TokenGuard. You just need to extend/change it to your needs and use your new guard instead of default auth:api guard
I need to change Authorization header to my custom Authorization header called X-OAuth-Authorization. can I do that? Because I want to use Authorization header for my middleware authentications. What should I do?