userVerificationAPI

This object contains all the APIs associated with user verification. For a guide, see User Verification API.

This method invalidates the customer token and removes all customer data from all tabs and windows.

Parameters

None.

Example

This method passes the user verification token to Salesforce. You must call this method for every tab or window that requires access to the authorized messaging conversation. Since the token is stored in the browser’s memory, call this method after a page refresh. Also, call this method with a renewed token before the original identity token expires (see onEmbeddedMessagingTokenExpired). This method must be called after the onEmbeddedMessagingReady event is dispatched.

Parameters

ParameterTypeDescription
identityTokenTypestringThe type of identity that is being provided. Currently, this value must be JWT.
identityTokenobjectThe user identity token.

Example