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

Function getSessionIngressAuthToken

src/utils/sessionIngressAuth.ts:209–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 * that can't inherit the FD.
208 */
209export function getSessionIngressAuthToken(): string | null {
210 // 1. Check environment variable
211 const envToken = process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN
212 if (envToken) {
213 return envToken
214 }
215
216 // 2. Check file descriptor (legacy path), with file fallback
217 return getTokenFromFileDescriptor()
218}
219
220export function getSessionIngressRuntimeLease(): IssuedRuntimeLease | null {
221 const token = getSessionIngressAuthToken()

Callers 12

runFunction · 0.85
prepareServersFunction · 0.85
isAnthropicAuthEnabledFunction · 0.85
getAuthTokenSourceFunction · 0.85
auth.tsFile · 0.85
runFilePersistenceFunction · 0.85
requestMethod · 0.85
appendSessionLogFunction · 0.85
getSessionLogsFunction · 0.85

Calls 1

Tested by

no test coverage detected