Skip to content

Update jwt declaration in _helpers/authorized.js #11

@Quaese

Description

@Quaese

With a version greater than 7.x of express-jwt the declaration need to be adjusted:

const { expressjwt: jwt } = require("express-jwt");

And there is also no user object added to req anymore. It is now auth.

See: npm/express-jwt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions