Uses execFile (non-blocking) instead of execFileSync to avoid blocking
the event loop during CLI cold start. Shares the same cache as the synchronous
version, so a successful async fetch makes subsequent sync calls instant.
Returns Promise<string|null>
The GitHub token string, or null if no token is available
Example
consttoken = awaitgetGitHubTokenAsync(); if (token) { // use token for API calls }
Asynchronous version of getGitHubToken.
Uses
execFile(non-blocking) instead ofexecFileSyncto avoid blocking the event loop during CLI cold start. Shares the same cache as the synchronous version, so a successful async fetch makes subsequent sync calls instant.