Skip to content

Support for custom sign / verify algorithms #34

Open

Description

@g-p-g

Would you consider accepting an object for the algorithm parameter in jwsVerify, as well checking for the presence of opts.algo in jwsSign? This would involve checking for string vs object to decide whether to use jwa or use it as is.

This way someone could pass {sign: function, verify: function} to support custom algorithms without needing to rewrite this module.

Activity

  1. Teukros commented on Mar 19, 2018

    @Teukros

    Let me refresh this topic since I have similar issue. Seems that there is a need for such feature - question is, on which level - node-jws or maybe node-jsonwebtoken (where I created PR for this already: auth0/node-jsonwebtoken#429)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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