MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveProxyClientToken

Function resolveProxyClientToken

src/cli/commands/proxy.ts:78–80  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

76}
77
78function resolveProxyClientToken(flags: CliFlags): string {
79 return flags.daemonAuthToken?.trim() || randomBytes(32).toString('hex');
80}
81
82function listen(server: ReturnType<typeof createDaemonProxyServer>, host: string, port: number) {
83 return new Promise<void>((resolve, reject) => {

Callers 1

startProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected