TeamsTokenCredential
Minimal structural type for an ACS CommunicationTokenCredential.
Defined in: src/providers/io/teams/TeamsCall.ts:190
Minimal structural type for an ACS CommunicationTokenCredential.
Remarks
Matches the surface of AzureCommunicationTokenCredential from @azure/communication-common. Supply an instance via TeamsCallConfig.tokenCredential when you need proactive token refresh; otherwise pass a raw token (or async token factory) via TeamsCallConfig.token and TeamsCall constructs the credential for you.
Methods
dispose()
dispose(): void;
Defined in: src/providers/io/teams/TeamsCall.ts:194
Releases refresh timers held by the credential.
Returns
void
getToken()
getToken(abortSignal?): Promise<{
expiresOnTimestamp: number;
token: string;
}>;
Defined in: src/providers/io/teams/TeamsCall.ts:192
Returns the current ACS user access token.
Parameters
| Parameter | Type |
|---|---|
abortSignal? | unknown |
Returns
Promise<{ expiresOnTimestamp: number; token: string; }>