Closed dattp closed 2 years ago
Hello I am implementing lua-resty-jwt in my plugin by lua, but when i use jwt.load_jwt function i received nil result. This's my code
jwt.load_jwt
nil
local jwt = require "resty.jwt" local accessToken = kong.request.get_header('authorization') print('======>accessToken: ', accessToken) local jwtLoaded = jwt.load_jwt(accessToken) print('======>jwtObject: ', tostring(jwtLoaded[1])) -- log nil
sr, This is my mistake. Should use cjson to print
cjson
print
Hello I am implementing lua-resty-jwt in my plugin by lua, but when i use
jwt.load_jwt
function i receivednil
result. This's my code