refactor: remove token-refresh, use env-based auth only

Delete token-refresh.ts and credentials.json sync. Auth is now
via CLAUDE_CODE_OAUTH_TOKEN in .env (1-year setup-token).
No more auto-refresh loop or credentials.json dependency.
This commit is contained in:
Eyejoker
2026-03-14 19:09:40 +09:00
parent 3546a35354
commit 35356dd8a7
4 changed files with 1 additions and 275 deletions

View File

@@ -63,13 +63,6 @@ function prepareGroupEnvironment(
);
fs.mkdirSync(groupSessionsDir, { recursive: true });
// Sync credentials from user's home ~/.claude/ so per-group sessions stay fresh
const homeClaudeDir = path.join(os.homedir(), '.claude');
const credsSrc = path.join(homeClaudeDir, '.credentials.json');
if (fs.existsSync(credsSrc)) {
fs.copyFileSync(credsSrc, path.join(groupSessionsDir, '.credentials.json'));
}
const settingsFile = path.join(groupSessionsDir, 'settings.json');
if (!fs.existsSync(settingsFile)) {
fs.writeFileSync(