TokenResolver type

A function that resolves an authentication token for the given agent and tenant. Return null if a token cannot be provided.

type TokenResolver = (
  agentId: string,
  tenantId: string,
  authScopes?: string[]
) => string | null | Promise<string | null>