Skip to content

[bug] bcrypt.compare always returns "true" #1195

@D50000

Description

@D50000

I am working on next.js project then encounter some bcryptjs library issue.

Snippet of package.json:

node: v20.11.1
"next": "15.1.7",
"next-auth": "^5.0.0-beta.25",
"bcryptjs": "^3.0.2",

Snippet code: the issue is no matter what I input is always return true of comparing:
Image
console:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions