JSONWebTokens.cfc icon indicating copy to clipboard operation
JSONWebTokens.cfc copied to clipboard

Doesn't work in Lucee 5.x

Open redtopia opened this issue 7 years ago • 2 comments

I didn't spend a lot of time on this, but I got it working by scoping global variables in the CFCs.

Also it might be worth noting that real-world examples would likely require quotes around the payload properties.

Hit me up if you're interested in knowing what I did. Otherwise, if this project isn't really needed anymore and a different library would be better, adding that to the docs would be great.

redtopia avatar Aug 13 '18 21:08 redtopia

I did find this one, which works in Lucee out of the box. https://github.com/coldfumonkeh/cf_jwt

redtopia avatar Aug 15 '18 17:08 redtopia

Yeah adding explicit scope to the global variables fixed it for me.

4strid avatar Aug 22 '18 21:08 4strid