fix: handle newlines in provided secret paths

This commit is contained in:
Aarnav Tale
2025-05-16 11:16:36 -04:00
parent c827f56b6b
commit 662c38ea44
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ async function loadClientSecret(path: string) {
return;
}
return secret;
return secret.trim();
} catch (error) {
log.error('config', 'Failed to read client secret from %s', path);
log.error('config', 'Error: %s', error);