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

Function getKeyringAccount

packages/cli-auth/credentials-store.ts:163–166  ·  view source on GitHub ↗

Return an account key suitable for use in keyrings for a given configPath. * * `auth.json` and the keychain are supposed to be equivalent and exchangeable. * Since file-based credentials storage is configurable (via config path), * we must ensure that keyring entries are keyed by config path al

(configPath: string)

Source from the content-addressed store, hash-verified

161 * the path.
162 */
163function getKeyringAccount(configPath: string): string {
164 const digest = createHash('sha256').update(configPath).digest('hex');
165 return `cli:${digest.slice(0, 16)}`;
166}
167
168export function setLoadKeyringModuleForTesting(
169 nextLoadKeyringModule?: LoadKeyringModule

Callers 1

createKeyringEntryFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected