I can't get impersonation to work with sanctum/jetstream
Ifriqiya opened this issue · comments
I have successfully used this package in 2 projects, the most recent using laravel breeze starter kit. But I'm trying to use it on a project that uses laravel sanctum and I get logged out on trying to impersonate another user.
I used Telescope to compare the successful usage on previous project and I can see that the current user session id is not deleted and replaced with a new one, rather, the same details is used to attempt to 'update' 'sessions' and fails.
Is there something I've done wrong?
The code from another issue: #141 (comment), resolved this for me but only when I use it along with this: #134 (comment).