MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / isSecureMode

Function isSecureMode

lib/auth.ts:1–3  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function isSecureMode(): boolean {
2 return !!process.env.OPENCODE_SERVER_PASSWORD
3}
4
5export function getAuthorizationHeader(): string | undefined {
6 const password = process.env.OPENCODE_SERVER_PASSWORD

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected