Miko55
252
22
Laravel

Laravel Passport correct usage

Posted 1 week ago by Miko55

Right now I have most things working as I am storing access token in localStorage. But now I want to move this to Cookies. For now I had only auth:api in my routes and after adding web middleware I am getting also laravel_session ans XSRF-TOKEN in cookies.

Now I removed auth:api because I still needed to send Bearer token, but with only web middleware I can make requests without any authorization from Postman. So what would be correct setup to use Cookies properly?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.