Skip to content

Commit

Permalink
fix: read as buffer instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mja00 committed Oct 25, 2023
1 parent f1a4457 commit 6b0db95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spawnpoint.nats.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6b0db95

Please sign in to comment.