Skip to content

Commit e98ac4f

Browse files
committed
fix: update discord service private key configuration in token generation
1 parent 952592e commit e98ac4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/config/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ module.exports = {
164164
"N+nS7Sqo3RJ04+KlNRUclzINOC7JBYkKtG7YQ0U9nNLkRrRlON+O6tY4OT86T1O1\n" +
165165
"AgMBAAE=\n" +
166166
"-----END PUBLIC KEY-----",
167-
discordServicePrivateKey:
167+
privateKey:
168168
"-----BEGIN RSA PRIVATE KEY-----\n" +
169169
"MIIEoQIBAAKCAQBK3CkprcpAYxme7vtdjpWOgFFjoYsqU3OmhMEty/s1gnW5tgbK\n" +
170170
"4ief4xk+cU+mu3YvjzWudT/SV17tAWxL4Y+GincJwL5gpQwlnw9qOAdRGkpBriQL\n" +

test/utils/generateBotToken.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const generateToken = (data) => {
2020
* @return {String} - Generated JWT
2121
*/
2222
const generateDiscordServiceToken = (data) => {
23-
return jwt.sign(data, config.get("discordServiceToken.discordServicePrivateKey"), {
23+
return jwt.sign(data, config.get("discordService.privateKey"), {
2424
algorithm: "RS256",
2525
expiresIn: "1m",
2626
});

0 commit comments

Comments
 (0)