Skip to content

init failed:Error: not supported argument #8

@Akshay-Vedak

Description

@Akshay-Vedak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions