MCPcopy
hub / github.com/codeaashu/claude-code / getSessionIngressAuthToken

Function getSessionIngressAuthToken

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

Source from the content-addressed store, hash-verified

99 * that can't inherit the FD.
100 */
101export function getSessionIngressAuthToken(): string | null {
102 // 1. Check environment variable
103 const envToken = process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN
104 if (envToken) {
105 return envToken
106 }
107
108 // 2. Check file descriptor (legacy path), with file fallback
109 return getTokenFromFileDescriptor()
110}
111
112/**
113 * Build auth headers for the current session token.

Callers 12

runFunction · 0.85
prepareServersFunction · 0.85
runFilePersistenceFunction · 0.85
isFilePersistenceEnabledFunction · 0.85
constructorMethod · 0.85
refreshHeadersMethod · 0.85
postOnceMethod · 0.85
requestMethod · 0.85
client.tsFile · 0.85
appendSessionLogFunction · 0.85
getSessionLogsFunction · 0.85

Calls 1

Tested by

no test coverage detected