mirror of
https://github.com/tale/headplane.git
synced 2026-08-22 18:56:38 +00:00
fix: handle newlines in provided secret paths
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user