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

Method logout

python/copilot/generated/rpc.py:25131–25134  ·  view source on GitHub ↗

Removes user authentication from keychain and persisted state.\n\nArgs:\n params: User to log out\n\nReturns:\n Logout result indicating if more users remain

(self, params: AccountLogoutRequest, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

25129 return AccountLoginResult.from_dict(await self._client.request("account.login", params_dict, **_timeout_kwargs(timeout)))
25130
25131 async def logout(self, params: AccountLogoutRequest, *, timeout: float | None = None) -> AccountLogoutResult:
25132 "Removes user authentication from keychain and persisted state.\n\nArgs:\n params: User to log out\n\nReturns:\n Logout result indicating if more users remain"
25133 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25134 return AccountLogoutResult.from_dict(await self._client.request("account.logout", params_dict, **_timeout_kwargs(timeout)))
25135
25136
25137# Experimental: this API group is experimental and may change or be removed.

Callers

nothing calls this directly

Calls 4

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected