I have a project developed on Laravel + VUEJS. I use passport for authentication and i have authorization working.
My users have new request and i dont know how control this in the best way.
Each user when logging get 2 or more companies access, and, I need storage this information and send to laravel each request to filter the data deppending on company connected.
In normal project, I used session and filter on laravel the data using session, but now, I dont have session to do the filter.
In a simple way, the user can change the connected company, and, when change, all data will change.
How I can achieve this with security ? I can use session, but, it can expiry, i dont know if this is a good aproach.