Skip to content

Commit 50854b5

Browse files
authored
fix(nodejs): update JWT audience to use dynamic host from API base URL (#30)
1 parent dca110b commit 50854b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodejs/jwt-oauth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ router.get("/callback", async (ctx) => {
120120
const oauthToken = await getJWTToken({
121121
baseURL: config.coze_api_base,
122122
appId: config.client_id,
123-
aud: "api.coze.cn",
123+
aud: new URL(config.coze_api_base).host,
124124
keyid: config.public_key_id,
125125
privateKey: config.private_key,
126126
});

0 commit comments

Comments
 (0)