Skip to content

Using JWT with callbacks #64

@LinaYahya

Description

@LinaYahya

verify(token, process.env.SECRET, (err, decoded) => {

I would say that While we are working with promise, It's a good practice to convert jwt.verify to promise then work with it.

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