CommunicationTokenCredential interface

The Azure Communication Services token credential.

Methods

dispose()

Disposes the CommunicationTokenCredential and cancels any internal auto-refresh operation.

getToken(CommunicationGetTokenOptions)

Gets an AccessToken for the user. Throws if already disposed.

Method Details

dispose()

Disposes the CommunicationTokenCredential and cancels any internal auto-refresh operation.

function dispose()

getToken(CommunicationGetTokenOptions)

Gets an AccessToken for the user. Throws if already disposed.

function getToken(options?: CommunicationGetTokenOptions): Promise<AccessToken>

Parameters

options
CommunicationGetTokenOptions

Additional options.

Returns

Promise<AccessToken>