0
Good Night, I am working with Laravel 5.3 on a solution, because it is an API application, I chose to use Laravel Passport as authentication. I have a certain difficulty in being able to load the Token in the page header, I can log in, return the access token, refresh token. But I cannot start the routes with a custom header with the information archived in Localsession. Via Postman I can normally authenticate the access, but via Laravel I still can’t add the "Authorization" information in the route header, I tried to add via header() in the view but it doesn’t take effect because Middleware auth:api redirects the page before it opens. My question is, how can I pass the tokens to the page header on the route before the middleware goes into action? Thank you.