diff --git a/apisix/plugins/jwt-auth.lua b/apisix/plugins/jwt-auth.lua index abfe0545d0b3..01d7e2a5c0f9 100644 --- a/apisix/plugins/jwt-auth.lua +++ b/apisix/plugins/jwt-auth.lua @@ -329,7 +329,7 @@ local function sign_jwt_with_RS256_ES256(key, auth_conf, payload) { header = { typ = "JWT", - alg = consumer.auth_conf.algorithm, + alg = auth_conf.algorithm, x5c = { auth_conf.public_key, }