fix: handle newlines in provided secret paths
This commit is contained in:
parent
c827f56b6b
commit
662c38ea44
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue