MCPcopy Create free account
hub / github.com/github/copilot-sdk / GetToken

Method GetToken

go/rpc/zrpc.go:18267–18267  ·  view source on GitHub ↗

GetToken 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

(request *ProviderTokenAcquireRequest)

Source from the content-addressed store, hash-verified

18265 // it as `Authorization: Bearer <token>` on the outbound request and does no caching; the
18266 // SDK consumer owns token caching and refresh.
18267 GetToken(request *ProviderTokenAcquireRequest) (*ProviderTokenAcquireResult, error)
18268}
18269
18270// Experimental: SessionFSHandler contains experimental APIs that may change or be removed.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected