Hi , for user impersonation when we log out of the...
# share-your-work
d
Hi , for user impersonation when we log out of the impersonated user will the admin still be logged it as an admin or the complete session is logged out
r
It will be a complete logout
d
Is there api for stop impersonation?
r
you could make one by creating an API that logs back the user in as the admin user, just like they logged in as the impersonated user. For this to be secure, you can add the admin user ID in the impersonated user session (in the access token payload), and only allow switching from user -> admin, if the user's session contains this custom claim that points to an admin user ID.
2 Views