From 6b0db9563572724a6dd53108f4c19717b4ad94f8 Mon Sep 17 00:00:00 2001 From: Matt Artist Date: Wed, 25 Oct 2023 11:55:28 -0400 Subject: [PATCH] fix: read as buffer instead --- spawnpoint.nats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawnpoint.nats.js b/spawnpoint.nats.js index 0c8d5ea..de6ee7e 100644 --- a/spawnpoint.nats.js +++ b/spawnpoint.nats.js @@ -59,7 +59,7 @@ module.exports = require('spawnpoint').registerPlugin({ // We want to read in the creds file given to us const authCredsFile = path.join(app.cwd, config.connection.auth.creds_file); delete config.connection.auth.creds_file; - const authCreds = fs.readFileSync(authCredsFile, 'utf8'); + const authCreds = fs.readFileSync(authCredsFile); // Create a new credsAuthenticator config.connection.authenticator = nats.credsAuthenticator(authCreds); delete config.connection.auth;