+ Start a Discussion
Ravi_SFDCRavi_SFDC 

I am trying to reproduce the Salesforce "LOGGED IN AS" in LWC

I am trying to reproduce the Salesforce "LOGGED IN AS" in LWC. 

Example: I am logged in as ABC user (Community LOGIN)

User-added image 
Now i have logged in as ABC user and emulated as AAA which shows as below
User-added image
Now i want to logout as AAA, once i logout as AAA i still should be logged in as ABC User.

Your help would be really appreciated.
  

SwethaSwetha (Salesforce Developers) 
HI Ravi,
Have you tried setting up a return URL in your code? Thanks