Function: logout()
logout(
orgIdentifiers?):Promise<LogoutResponse>
Ends the session for the logged-in user and user will wait for promise resolution
• orgIdentifiers?: string[]
An array of org URLs to logout. If not provided, this logs out of all orgs.
Promise<LogoutResponse>
A promise that resolves with logout status, message, and org states.
In multi org scenarios, you can log out from specific orgs or all orgs:
Invalid org URLs are silently ignored. Only valid orgs that were previously initialized will be logged out.