MCPcopy Index your code
hub / github.com/anomalyco/opencode / emptyCredential

Function emptyCredential

packages/server/src/middleware/authorization.ts:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const WWW_AUTHENTICATE = 'Basic realm="Secure Area"'
11
12function emptyCredential() {
13 return { username: "", password: Redacted.make("") }
14}
15
16function decodeCredential(input: string) {
17 return Effect.fromResult(Encoding.decodeBase64String(input)).pipe(

Callers 2

decodeCredentialFunction · 0.70
credentialFromRequestFunction · 0.70

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected