Skip to content

Missing await #272

@lautarodragan

Description

@lautarodragan

In this line isValidSignature is missing an await. The promise returned is truthy, always evaluates to true.

if (isValidSignature(signedClaim)) return signedClaim
throw new IllegalArgumentException('Claim signature is invalid')

This hasn't been an issue. This code is probably more suitable for a unit test. We could just remove it here and add a unit test.

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