Switch to another filament user

I created an action to switch between users. In Laravel authcation it works fine. But in filament I logout for some reason.

I created a controller that gets the user and does auth()->login($user) and redirect back to dashboard
Was this page helpful?