Skip to content

'wrong private key type' during json web token verification #32

Closed
@max-mapper

Description

@max-mapper

https://gist.github.com/maxogden/62b7119909a93204c747633308a4d769

browserifying with this:

browserify -t brfs index.js -o bundle.js

I get Uncaught Error: wrong private key type

from the line if (signType !== 'ecdsa') throw new Error('wrong private key type')

The signType in my case is 'rsa'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions