mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
fix: address Phase 4 review — cookie file permissions (0600), gitignore cookies dir
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
94902fc2c4
commit
fbc4cbe4d6
2 files changed
+2
-1
No files matched your search
@@ -4,4 +4,5 @@ dist/
|
||||
*.db
|
||||
.env
|
||||
config.json
|
||||
cookies/
|
||||
.superpowers/
|
||||
+1
-1
@@ -17,7 +17,7 @@ export function createCookieStore(cookieDir: string): CookieStore {
|
||||
fs.writeFileSync(
|
||||
filePath,
|
||||
JSON.stringify({ cookie, updatedAt: new Date().toISOString() }),
|
||||
"utf-8"
|
||||
{ encoding: "utf-8", mode: 0o600 }
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user