* Get the configured GitHub username allowed to authenticate server/browser mode.
()
| 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 | } |
no test coverage detected