mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52: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
|
*.db
|
||||||
.env
|
.env
|
||||||
config.json
|
config.json
|
||||||
|
cookies/
|
||||||
.superpowers/
|
.superpowers/
|
||||||
+1
-1
@@ -17,7 +17,7 @@ export function createCookieStore(cookieDir: string): CookieStore {
|
|||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
filePath,
|
filePath,
|
||||||
JSON.stringify({ cookie, updatedAt: new Date().toISOString() }),
|
JSON.stringify({ cookie, updatedAt: new Date().toISOString() }),
|
||||||
"utf-8"
|
{ encoding: "utf-8", mode: 0o600 }
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user