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

Function tryReadKeyringCredentialsIntoFile

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

Source from the content-addressed store, hash-verified

287}
288
289function tryReadKeyringCredentialsIntoFile(
290 configPath: string,
291 runtimeFlags: RuntimeFlags
292): Credentials | null {
293 try {
294 const credentials = readCredentialsFromKeyring(configPath, runtimeFlags);
295
296 if (credentials === null) {
297 return null;
298 }
299
300 return migrateCredentialsToFile(configPath, credentials, runtimeFlags);
301 } catch {
302 return null;
303 }
304}
305
306function readFileStorageCredentials(
307 configPath: string,

Callers 1

Calls 2

migrateCredentialsToFileFunction · 0.85

Tested by

no test coverage detected