Skip to content

Function: connectorToken()

connectorToken(options): Promise<string>

Fetch (or reuse) a Connector API access token for the bot’s own app registration.

Cached until shortly before expiry: a Connector token is valid for ~1h, and re-fetching per reply would add a round trip to every turn.

string

string

string

AbortSignal

Promise<string>