Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.5 KB

File metadata and controls

40 lines (25 loc) · 1.5 KB
title description ms.date ms.topic author ms.author
setBotAuthTokenProvider (Omnichannel for Customer Service JavaScript API reference) | MicrosoftDocs
Includes reference information such as syntax and parameter for the setBotAuthTokenProvider method in Omnichannel for Customer Service JavaScript API reference.
11/02/2022
reference
gandhamm
mgandham

setBotAuthTokenProvider

[!INCLUDEcc-use-with-omnichannel]

The bot authentication token provider function, when called with a callback function as a parameter, returns the botAuthUrlto send the token to the bot and invokes the callback function to set the sign-in card visibility.

Syntax

Microsoft.Omnichannel.LiveChatWidget.SDK.setBotAuthTokenProvider(authTokenProvider);

Parameters

Parameter Type Description
authTokenProvider Function Function which when invoked with a callback function as parameter, returns the botAuthUrl to send the token to the bot and invokes the callback function to set the sign-in card visibility.

Return value

Bot authentication URL.

Example

[!INCLUDEsetBotAuthTokenProvider-code-sample]

See also

JavaScript API reference for live chat SDK
Pass authentication token to bot during single sign-on in live chat

[!INCLUDEfooter-include]