MCPcopy Index your code
hub / github.com/github/copilot-sdk / getToken

Method getToken

nodejs/src/generated/rpc.ts:16865–16865  ·  view source on GitHub ↗

* Asks the SDK client to get a bearer token for a BYOK provider whose config set `hasBearerTokenProvider: true`. Session-scoped: the runtime calls it back on the connection that most recently supplied that provider's config for the session (the creating connection, or a resuming connection if the se

(params: ProviderTokenAcquireRequest)

Source from the content-addressed store, hash-verified

16863 * @returns A bearer token supplied by the SDK client for a BYOK provider. The runtime sets it as `Authorization: Bearer <token>` on the outbound request and does no caching; the SDK consumer owns token caching and refresh.
16864 */
16865 getToken(params: ProviderTokenAcquireRequest): Promise<ProviderTokenAcquireResult>;
16866}
16867
16868/** Handler for `sessionFs` client session API methods. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected