MCPcopy Create free account
hub / github.com/arctic-cli/interface / readState

Function readState

packages/arctic/src/cli/external-auth-import.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19async function readState() {
20 return Storage.read<ExternalAuthImportState>(STATE_KEY).catch((err) => {
21 if (err instanceof Storage.NotFoundError) return undefined
22 throw err
23 })
24}
25
26export async function maybeImportExternalAuth() {
27 if (!process.stdin.isTTY || !process.stdout.isTTY) return

Callers 1

maybeImportExternalAuthFunction · 0.70

Calls 1

readMethod · 0.45

Tested by

no test coverage detected