Skip to content

Wrong typing for algorithms #285

Closed
Closed
@fsanzv

Description

@fsanzv

Description

If you do not provide ´algorithms´ option you get an exception in run time.

I know this is in the doc: https://github.com/auth0/express-jwt#required-parameters but the typings used for ´algorithms´ option comes from jsonwebtoken package and there the ´algorithms´ is defined as optional.

I think this typing should be overridden in jwt to avoid confusion.

Activity

jfromaniello

jfromaniello commented on May 2, 2022

@jfromaniello
Member

good catch! fixed in v7.6.2

added a commit that references this issue on May 2, 2022
587238b
added a commit that references this issue on Apr 1, 2024
097a1df
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

        Participants

        @jfromaniello@fsanzv

        Issue actions

          Wrong typing for algorithms · Issue #285 · auth0/express-jwt