MCPcopy
hub / github.com/coder/mux / getServerAuthGithubOwner

Method getServerAuthGithubOwner

src/node/config.ts:1469–1477  ·  view source on GitHub ↗

* Get the configured GitHub username allowed to authenticate server/browser mode.

()

Source from the content-addressed store, hash-verified

1467 * Get the configured GitHub username allowed to authenticate server/browser mode.
1468 */
1469 getServerAuthGithubOwner(): string | undefined {
1470 const envOwner = parseOptionalNonEmptyString(process.env.MUX_SERVER_AUTH_GITHUB_OWNER);
1471 if (envOwner) {
1472 return envOwner;
1473 }
1474
1475 const config = this.loadConfigOrDefault();
1476 return config.serverAuthGithubOwner;
1477 }
1478 private getProjectName(projectPath: string): string {
1479 return PlatformPaths.getProjectName(projectPath);
1480 }

Callers 2

config.test.tsFile · 0.80
getAllowedGithubOwnerMethod · 0.80

Calls 2

loadConfigOrDefaultMethod · 0.95

Tested by

no test coverage detected