MCPcopy Create free account
hub / github.com/desktop/desktop / fromAccount

Method fromAccount

app/src/lib/api.ts:842–844  ·  view source on GitHub ↗

Create a new API client from the given account.

(account: Account)

Source from the content-addressed store, hash-verified

840
841 /** Create a new API client from the given account. */
842 public static fromAccount(account: Account): API {
843 return new API(account.endpoint, account.token, account.copilotEndpoint)
844 }
845
846 private endpoint: string
847 private token: string

Callers 15

AliveStoreClass · 0.80
getAPIForRepositoryMethod · 0.80
loadRepositoriesMethod · 0.80
getByLoginMethod · 0.80
updateMentionablesMethod · 0.80
fetchPullRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected