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

Method GetStatus

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

GetStatus gets authentication status and account metadata for the session. RPC method: session.gitHubAuth.getStatus. Returns: Authentication status and account metadata for the session.

(ctx context.Context)

Source from the content-addressed store, hash-verified

14342//
14343// Returns: Authentication status and account metadata for the session.
14344func (a *GitHubAuthAPI) GetStatus(ctx context.Context) (*SessionAuthStatus, error) {
14345 req := map[string]any{"sessionId": a.sessionID}
14346 raw, err := a.client.Request(ctx, "session.gitHubAuth.getStatus", req)
14347 if err != nil {
14348 return nil, err
14349 }
14350 var result SessionAuthStatus
14351 if err := json.Unmarshal(raw, &result); err != nil {
14352 return nil, err
14353 }
14354 return &result, nil
14355}
14356
14357// SetCredentials updates the session's auth credentials used for outbound model and API
14358// requests.

Callers 2

TestPerSessionAuthE2EFunction · 0.45
TestRPCSessionStateE2EFunction · 0.45

Calls 1

RequestMethod · 0.45

Tested by 2

TestPerSessionAuthE2EFunction · 0.36
TestRPCSessionStateE2EFunction · 0.36