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 |
[!INCLUDEcc-use-with-omnichannel]
The bot authentication token provider function, when called with a callback function as a parameter, returns the botAuthUrl
to send the token to the bot and invokes the callback function to set the sign-in card visibility.
Microsoft.Omnichannel.LiveChatWidget.SDK.setBotAuthTokenProvider(authTokenProvider);
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. |
Bot authentication URL.
[!INCLUDEsetBotAuthTokenProvider-code-sample]
JavaScript API reference for live chat SDK
Pass authentication token to bot during single sign-on in live chat
[!INCLUDEfooter-include]