Skip to content

JWT_SECRET Not In Env #28

Description

@10txn

Hi,

Hoping someone can help.

My backend fails to work when registering a new user, I have the error: "JsonWebTokenError: jwt malformed" the issue appears to be that the JWT_SECRET env is not available in the userController.js file. I'm wondering a couple of things here.

  1. Why no package.json for the backend project?
  2. Why is dotenv not imported/required in the userController.js

It's a little weird that others haven't had the same issue, so I guess I must be missing something?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions