Skip to content

Wrap signature verification with error handling #17

@felipewer

Description

@felipewer

In the src/auth/verify-challenge-signature.js file, wrap the call to

return verifier.verify(nonce, value, authKey);

in a try/catch block e throw a new error with the message "Invalid signature" if it fails.

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