I am getting this error while using the getAccessTokenViaPKI method with clientId, private key and username
init failed:Error: not supported argument
and I think its because the package is using RS256 algorithm with jsrasign package to generate JWT tokens. I researched about the issue and found out that HS256 algorithm should be used with jsrasign so please update the package. Here is the place I referred from:
https://www.albinsblog.com/2020/12/init-failederror-not-supported-argument-jsrsasign-node-js.html
I am getting this error while using the getAccessTokenViaPKI method with clientId, private key and username
init failed:Error: not supported argumentand I think its because the package is using RS256 algorithm with jsrasign package to generate JWT tokens. I researched about the issue and found out that HS256 algorithm should be used with jsrasign so please update the package. Here is the place I referred from:
https://www.albinsblog.com/2020/12/init-failederror-not-supported-argument-jsrsasign-node-js.html