cdbattags / lua-resty-jwt

JWT For The Great Openresty
Apache License 2.0
146 stars 44 forks source link

Standalone usage? #39

Closed dantman closed 3 years ago

dantman commented 4 years ago

lua-resty-jwt is the only JWT library for Lua listed on jwt.io?

The library seems to be designed for use in the Nginx Lua plugin.

Is this library usable as a standalone jwt library for Lua, outside of nginx?

northlander commented 3 years ago

Sure it can be used outside of Nginx. However it depends on some OpenResty packages. It works fine using the "resty" command line tool to load the lua-script instead of lua/luajit.

resty my-lua-script-using-lua-resty-jwt.lua

You can probably collect all dependencies on your own via luarocks etc and fire up a standalone version. I haven't tried though.

cdbattags commented 3 years ago

@northlander, thanks for the response! @dantman, let us know if you need more clarification. Closing for now.