fix: support custom alg in jwt header for signing (#729)

* fix: support custom alg in jwt header for signing

* lint
2 files changed