You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried using the link generated by route('impersonate.leave')
and also with my own controller method and using manually: Auth::user()->leaveImpersonation();
But both ways redirects me to the login page, since it loses the authentication of the original user.
I tried (reading some other issues) using Route::middleware(['auth:web',]) instead of auth:sanctum.
And also add this
I had this problem on this library, then I looked for another one, but unfortunately it had the same problem, but after a while I found a solution, so it might work on this one too.
Laravel Framework 9.19.0
I have tried using the link generated by route('impersonate.leave')
and also with my own controller method and using manually: Auth::user()->leaveImpersonation();
But both ways redirects me to the login page, since it loses the authentication of the original user.
I tried (reading some other issues) using Route::middleware(['auth:web',]) instead of auth:sanctum.
And also add this
But problem persists...
Any ideas ?
The text was updated successfully, but these errors were encountered: