Summer Sale! All accounts are 50% off this week.

LozovoyV's avatar

How to get user's session in Passport authenticated API

In my app I'm using AJAX and authentication through Passport. It all works fine. In controller I can get authenticated user, but I can't get user's session. session()->all() returns [] and $request->session()->all() returns Session store not set on request.. How to solve this? Upd. Session is set and works in not API calls

0 likes
3 replies
Lev's avatar

HI, I also have the same problem. How do you solved it?

Thanks

alokalokims's avatar

HI, I also have the same problem. How do you solved it?

Thanks

Please or to participate in this conversation.