Skip to content

Fix: TypeError: jwt is not a function #4

@luisjunco

Description

@luisjunco

Problem: running the project with npm run dev gives the following error: TypeError: jwt is not a function.

Reason: in it's latest version, "express-jwt" has changed what it exports (we're using a syntax compatible with 7.x but in package.json we're still using v.6.x).

Solution: using "express-jwt" v.7.x will solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions