v4.3.1
What's Changed
Bug Fixes π
- Fix Impersonation Logout on Jetstream: Resolved a critical issue where users were unexpectedly logged out immediately after impersonating another user in Laravel 11/Jetstream environments. The package's
SessionStoragenow properly updatespassword_hash_webin the session, preventing Jetstream'sAuthenticateSessionmiddleware from invalidating the session due to a password hash mismatch. Fixes #31. - Fix UI CORS & Subdirectory Issues: Updated the impersonate widget's frontend configuration to dynamically use
url('/')instead of relying strictly onconfig('app.url'). This prevents CORS errors during local development (e.g., when accessing via127.0.0.1whileAPP_URLislocalhost) and ensures the UI routes correctly when the application is hosted in a subdirectory.
Full Changelog: v4.3.0...v4.3.1