Skip to content

User Registration 1st test case error: secretOrPrivateKey must have a value #18

@hsiangchunch

Description

@hsiangchunch

Description:

  • The JWT_SECRET environment variable is not set in the testing environment, causing the application to exit early.
  • This causes test failing with the message: "secretOrPrivateKey must have a value."

What should've been done:

  • Set up a default value for the JWT_SECRET variable in the testing environment.

Suggested Fix:

  • Modify the test configuration to include a mock JWT_SECRET value.
  • Or update the code to handle missing environment variables without exiting.

Priority: High
Status: To-do
Expected time required to fix it: 1 day

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