MCPcopy Create free account
hub / github.com/EvoMap/evolver / restoreEnv

Function restoreEnv

test/oauthLogin.test.js:47–52  ·  view source on GitHub ↗
(saved)

Source from the content-addressed store, hash-verified

45}
46
47function restoreEnv(saved) {
48 for (const [key, value] of Object.entries(saved)) {
49 if (value === undefined) delete process.env[key];
50 else process.env[key] = value;
51 }
52}
53
54function clearHubCredentialEnv() {
55 for (const key of HUB_CREDENTIAL_ENV_KEYS) delete process.env[key];

Callers 1

oauthLogin.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected