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

Class AccountLoginResult

python/copilot/generated/rpc.py:325–343  ·  view source on GitHub ↗

Result of a successful login; throws on failure

Source from the content-addressed store, hash-verified

323# Experimental: this type is part of an experimental API and may change or be removed.
324@dataclass
325class AccountLoginResult:
326 """Result of a successful login; throws on failure"""
327
328 stored_in_vault: bool
329 """Whether the credential was persisted to a secure store (system keychain, or the config
330 file when plaintext storage is enabled). False when no secure store was available and the
331 token was not saved, so the consumer can decide how to proceed.
332 """
333
334 @staticmethod
335 def from_dict(obj: Any) -> 'AccountLoginResult':
336 assert isinstance(obj, dict)
337 stored_in_vault = from_bool(obj.get("storedInVault"))
338 return AccountLoginResult(stored_in_vault)
339
340 def to_dict(self) -> dict:
341 result: dict = {}
342 result["storedInVault"] = from_bool(self.stored_in_vault)
343 return result
344
345# Experimental: this type is part of an experimental API and may change or be removed.
346@dataclass

Callers 1

from_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…