We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the auth token is corrupt and the payload ends up being nil, the code crashes.
Line 766 of jwt.lua
local val = claim == str_const.full_obj and cjson_decode(jwt_json) or jwt_obj.payload[claim]
Should be
local val = claim == str_const.full_obj and cjson_decode(jwt_json) or (jwt_obj.payload and jwt_obj.payload[claim])
The text was updated successfully, but these errors were encountered:
Feel free to open a PR!
Sorry, something went wrong.
Hi @fredhall! Would you be willing to add a PR? If not I could get to this in a couple weeks
Hey @fredhall, poking you here. You able to work through how to submit a pull request?
No branches or pull requests
If the auth token is corrupt and the payload ends up being nil, the code crashes.
Line 766 of jwt.lua
local val = claim == str_const.full_obj and cjson_decode(jwt_json) or jwt_obj.payload[claim]
Should be
local val = claim == str_const.full_obj and cjson_decode(jwt_json) or (jwt_obj.payload and jwt_obj.payload[claim])
The text was updated successfully, but these errors were encountered: