feat(cli): redact access_token in config output
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ export function loadConfigSafe(configPath?: string): { config?: Config; error?:
|
||||
|
||||
/** Deep-clone config and replace sensitive fields with '***'. */
|
||||
export function redactSecrets(config: Record<string, unknown>): Record<string, unknown> {
|
||||
const sensitiveKeys = ['bot_token', 'api_key', 'auth_token'];
|
||||
const sensitiveKeys = ['bot_token', 'api_key', 'auth_token', 'access_token'];
|
||||
|
||||
function redact(obj: unknown): unknown {
|
||||
if (obj === null || obj === undefined) {return obj;}
|
||||
|
||||
Reference in New Issue
Block a user