MCPcopy Index your code
hub / github.com/Waishnav/devspace / writeDevspaceAuth

Function writeDevspaceAuth

src/user-config.ts:77–85  ·  view source on GitHub ↗
(
  auth: DevspaceAuthConfig,
  env: NodeJS.ProcessEnv = process.env,
)

Source from the content-addressed store, hash-verified

75}
76
77export function writeDevspaceAuth(
78 auth: DevspaceAuthConfig,
79 env: NodeJS.ProcessEnv = process.env,
80): string {
81 const filePath = devspaceAuthPath(env);
82 mkdirSync(devspaceConfigDir(env), { recursive: true });
83 writeJsonFile(filePath, auth, 0o600);
84 return filePath;
85}
86
87export function generateOwnerToken(): string {
88 return randomBytes(32).toString("base64url");

Callers 1

runInitFunction · 0.85

Calls 3

devspaceAuthPathFunction · 0.85
devspaceConfigDirFunction · 0.85
writeJsonFileFunction · 0.85

Tested by

no test coverage detected