diff --git a/services/backend.js b/services/backend.js index 3fcdcc5..d2bf38c 100644 --- a/services/backend.js +++ b/services/backend.js @@ -250,7 +250,7 @@ function makeServerToken(channelId) { send: ['*'], }, }; - return jsonwebtoken.sign(payload, secret, { algorithm: 'HS256' }); + return jsonwebtoken.sign(payload, Buffer.from(secret, "base64"), { algorithm: 'HS256' }); } function userIsInCooldown(opaqueUserId) {