MCPcopy Create free account
hub / github.com/vercel/vercel / readCredentialsFromKeyring

Function readCredentialsFromKeyring

packages/cli-auth/credentials-store.ts:222–234  ·  view source on GitHub ↗
(
  configPath: string,
  runtimeFlags: RuntimeFlags
)

Source from the content-addressed store, hash-verified

220}
221
222function readCredentialsFromKeyring(
223 configPath: string,
224 runtimeFlags: RuntimeFlags
225): Credentials | null {
226 const entry = createKeyringEntry(configPath, runtimeFlags);
227 const value = entry.getPassword();
228
229 if (value === null) {
230 return null;
231 }
232
233 return parseCredentials(JSON.parse(value));
234}
235
236function writeCredentialsToKeyring(
237 configPath: string,

Calls 4

createKeyringEntryFunction · 0.85
parseCredentialsFunction · 0.85
getPasswordMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected