jitsi / luajwtjitsi

JWT tokens for Lua
MIT License
18 stars 10 forks source link

Re-add 'only decode' functionality #5

Closed joelsdc closed 2 years ago

joelsdc commented 2 years ago

Hi,

Since v3.0 the decode functionality has been removed but the README still states that it exists

-- only decode
local unsafe, err = jwt.decode(token)

Thanks!

joelsdc commented 2 years ago

For now I've pinned to v2.0 but I'd love to know if it's viable to add it back.

saghul commented 2 years ago

It will not be coming back because more extra checks are necessary, it's unsafe. We'll fixup the README.