Logout

Logout from all symphony instances

The logout function exposed by the SDK allows you to log the user out of all symphony instances. The function is available in Focus and Collaboration modes.

When called, the function will log the user out of symphony servers and then delete all the iFrames controlled by our SDK.

window.symphony.logout(): Promise<{error?: {type: string; message: string}}>;

Returned Promise

The Logout function returns a JavaScript Promise that will resolve once the action has been completed. The promise has the following interface:

- Success: {}

- Error:

ParameterTypeDescription

type

string

Type of error: ERROR for generic errors

message

string

Description of the error

data

Object | undefined

Additional data on the error, if any.

Use with caution: This function logs the user out of all the symphony instances of his current browser. So if the user is logged in ECP from two web apps (yours, and another one) then you will log him out from the two apps.

Last updated