From f5e202b27b4b2adb8f75df7d05052dcf30c90a4b Mon Sep 17 00:00:00 2001 From: chyroc Date: Thu, 23 Jan 2025 20:46:40 +0800 Subject: [PATCH] fix: Resolve issues with Node.js JWT implementation (#20) --- nodejs/jwt-oauth/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/jwt-oauth/index.js b/nodejs/jwt-oauth/index.js index 4e3e330..7adef66 100644 --- a/nodejs/jwt-oauth/index.js +++ b/nodejs/jwt-oauth/index.js @@ -118,7 +118,7 @@ router.get("/callback", async (ctx) => { appId: config.client_id, aud: "api.coze.cn", keyid: config.public_key_id, - privateKey: config.client_secret, + privateKey: config.private_key, }); // Check if it's an AJAX request