Skip to content

In version 4.11.4, the verify method in JWT changed so that the third parameter, which was previously optional, is now required.Β #4625

@andyhou-nothing

Description

@andyhou-nothing

What version of Hono are you using?

4.11.4

What runtime/platform is your app running on? (with version if possible)

Cloudflare workers

What steps can reproduce the bug?

Step 1: Upgrade to the latest version of Hono.
Step 2: Run existing legacy code that includes calls to the verify method (without passing the previously optional third parameter).
Step 3: An error occurs, indicating that the alg parameter must be specified.

What is the expected behavior?

This kind of widely used API should maintain backward compatibility

What do you see instead?

this is 4.11.4

Image

this is 4.11.3

Image

Additional information

No response

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