leslie-tsang commented on a change in pull request #5947:
URL: https://github.com/apache/apisix/pull/5947#discussion_r776126818
##########
File path: apisix/plugins/jwt-auth.lua
##########
@@ -344,8 +341,8 @@ end
function _M.rewrite(conf, ctx)
local jwt_token, err = fetch_jwt_token(ctx)
if not jwt_token then
- if err and err:sub(1, #"no cookie") ~= "no cookie" then
- core.log.error("failed to fetch JWT token: ", err)
+ if err then
Review comment:
Seems we don't need to check `err` as func `fetch_jwt_token` doesn't
return it any more.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]