Commit Graph

2 Commits

Author SHA1 Message Date
zhouyiheng.go 90d315ce0c feat: custom json and base64 encoders for Token and Parser
Co-Authored-By: Christian Banse <oxisto@aybaze.com>
2024-07-04 21:45:03 +02:00
Christian Banse b357385d3e
Moving `DecodeSegement` to `Parser` (#278)
* Moving `DecodeSegement` to `Parser`

This would allow us to remove some global variables and move them to parser options as well as potentially introduce interfaces for json and b64 encoding/decoding to replace the std lib, if someone wanted to do that for performance reasons.

We keep the functions exported because of explicit user demand.

* Sign/Verify does take the decoded form now
2023-03-24 19:13:09 +01:00