Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
export
function
isSecureMode(): boolean {
2
return
!!process.env.OPENCODE_SERVER_PASSWORD
3
}
4
5
export
function
getAuthorizationHeader(): string | undefined {
6
const
password = process.env.OPENCODE_SERVER_PASSWORD
Callers
1
index.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected