Closed guanglinlv closed 4 years ago
Should be working as intended. Those keys should always exist in your JWT, no?
I didn't write this specific line of code but yes, I believe you're right.
Should be: string_constant.thing
I did the following change, it works as expect IMO.
function _M.get_default_validation_options(self, jwt_obj)
return {
[str_const.require_exp_claim]=jwt_obj[str_const.payload][str_const.exp] ~= nil,
[str_const.require_nbf_claim]=jwt_obj[str_const.payload][str_const.nbf] ~= nil
}
end
Is there any PR planned to fix this ? Thanks in advance.
@guanglinlv, want to put in a PR for this?
Hi
is it a typo ?
exp
andnbf
never defined. see L359