()
| 171 | * Well-known file: /home/claude/.claude/remote/.oauth_token. |
| 172 | */ |
| 173 | export function getOAuthTokenFromFileDescriptor(): string | null { |
| 174 | return getCredentialFromFd({ |
| 175 | envVar: 'CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR', |
| 176 | wellKnownPath: CCR_OAUTH_TOKEN_PATH, |
| 177 | label: 'OAuth token', |
| 178 | getCached: getOauthTokenFromFd, |
| 179 | setCached: setOauthTokenFromFd, |
| 180 | }) |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Get the CCR-injected API key. See getCredentialFromFd for FD-vs-disk |
no test coverage detected