MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseBooleanFlag

Function parseBooleanFlag

src/utils/sessionIngressAuth.ts:102–106  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

100}
101
102function parseBooleanFlag(value: string | undefined): boolean | null {
103 if (value === '1') return true
104 if (value === '0') return false
105 return null
106}
107
108function parseSessionIdFromLeaseId(leaseId: string | undefined): string | null {
109 if (!leaseId) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected