Skip to content

Commit 952592e

Browse files
committed
fix: correct discord service public key configuration
1 parent 04674a6 commit 952592e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/botVerificationService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const verifyToken = (token) => {
1717
* @return {Object} - Decode value of JWT
1818
*/
1919
const verifyDiscordService = (token) => {
20-
return jwt.verify(token, config.get("discordServiceToken.discordServicePublicKey"), { algorithms: ["RS256"] });
20+
return jwt.verify(token, config.get("discordService.publicKey"), { algorithms: ["RS256"] });
2121
};
2222

2323
/**

test/config/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ module.exports = {
153153
"-----END RSA PRIVATE KEY-----",
154154
},
155155

156-
discordServiceToken: {
157-
discordServicePublicKey:
156+
discordService: {
157+
publicKey:
158158
"-----BEGIN PUBLIC KEY-----\n" +
159159
"MIIBITANBgkqhkiG9w0BAQEFAAOCAQ4AMIIBCQKCAQBK3CkprcpAYxme7vtdjpWO\n" +
160160
"gFFjoYsqU3OmhMEty/s1gnW5tgbK4ief4xk+cU+mu3YvjzWudT/SV17tAWxL4Y+G\n" +

0 commit comments

Comments
 (0)