Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get impersonation to work with sanctum/jetstream #144

Closed
Ifriqiya opened this issue Nov 15, 2021 · 1 comment
Closed

I can't get impersonation to work with sanctum/jetstream #144

Ifriqiya opened this issue Nov 15, 2021 · 1 comment

Comments

@Ifriqiya
Copy link

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?

@Ifriqiya
Copy link
Author

Ifriqiya commented Nov 15, 2021

The code from another issue: #141 (comment), resolved this for me but only when I use it along with this: #134 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant