Skip to content

What are you trying to do here ? #8

@donriddo

Description

@donriddo

return res.json({ token: jwt.sign({ id: User.id }, 'newpassword'),

Are you not trying to sign a json web token with user._id ? Why using User.id ?

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