TeamsCallConfig
Configuration for TeamsCall.
Defined in: src/providers/io/teams/TeamsCall.ts:288
Configuration for TeamsCall.
Remarks
Authentication uses an ACS user access token (issued server-side from your ACS resource via the Identity SDK/REST API with the voip scope). Provide either:
- token — a raw token string, or an async factory returning a fresh token (factories are resolved once at
initialize()time), or - tokenCredential — a pre-constructed
AzureCommunicationTokenCredential, useful when you need proactive refresh for calls longer than the token lifetime.
Example
const teams = new TeamsCall({
token: async () => (await fetch('/api/acs-token')).json().then((r) => r.token),
displayName: 'Voice Agent',
meetingLink: 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_...',
debug: true,
});
See
TeamsCall for where this config is consumed
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
debug? | boolean | false | Whether to enable debug logging for this provider. | src/providers/io/teams/TeamsCall.ts:328 |
displayName? | string | 'Voice Agent' | Display name shown to other meeting participants. | src/providers/io/teams/TeamsCall.ts:315 |
meetingLink | string | undefined | Teams meeting join link (https://teams.microsoft.com/l/meetup-join/...). | src/providers/io/teams/TeamsCall.ts:321 |
token? | string | () => Promise<string> | undefined | ACS user access token, or an async factory returning one. Remarks Ignored when tokenCredential is provided. Tokens are issued from your ACS resource server-side — never mint them in the browser with your resource connection string. | src/providers/io/teams/TeamsCall.ts:297 |
tokenCredential? | TeamsTokenCredential | undefined | Pre-constructed ACS token credential (AzureCommunicationTokenCredential). Remarks Takes precedence over token. TeamsCall does not dispose credentials it did not create — the caller retains ownership. | src/providers/io/teams/TeamsCall.ts:308 |