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
Use and configure the Impersonatable trait for the Authenticatable models
Impersonate to a Authenticatable
Because Jetstream is using Laravel Sanctum the password_hash_sanctum session will be created
Navigate to any page where the auth:sanctum middleware is set
Everything is OK
Stop Impersonate to the Authenticatable
The password_hash_sanctum will not be deleted automatically now
Navigate to any page where the auth:sanctum middleware is set
Because Jetstream is using sanctum under the hood the password_hash_sanctum is invalid and all session keys will be deleted and you are not able to impersonate and you will be logged out from Nova aswel
The text was updated successfully, but these errors were encountered:
Unable to reproduce the issue, please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)
Hi there, this issue has been marked as fixed and done based on above description, reproducing code and test done on our side. If you still have a problem please create a New Issue with full description on how to reproduce the issue based on your use case.
Description:
When trying to impersonate a user within Jetstream for the second time, all sessions will be deleted.
A quick fix is by deleting the
password_hash_sactum
session manually on theStoppedImpersonating
event:Detailed steps to reproduce the issue on a fresh Nova installation:
Impersonatable
trait for theAuthenticatable
modelsAuthenticatable
password_hash_sanctum
session will be createdauth:sanctum
middleware is setAuthenticatable
password_hash_sanctum
will not be deleted automatically nowauth:sanctum
middleware is setpassword_hash_sanctum
is invalid and all session keys will be deleted and you are not able to impersonate and you will be logged out from Nova aswelThe text was updated successfully, but these errors were encountered: