Skip to content
Discussion options

You must be logged in to vote

Here's the hashing code you'd need to use to produce an identical hash:

    const salt = bcrypt.genSaltSync(10);
    this.password = bcrypt.hashSync(this.password, salt);

This is a user document in MongoDB:

{
  "_id": {
    "$oid": "68a5fba60929a08af2c0ca56"
  },
  "firstName": "Alex",
  "lastName": "Holliday",
  "email": "[email protected]",
  "password": "$2b$10$h/dhY.6LlP/k7SRu5Q/p.eePsLcfuAVnxU./ihoUS4MblPCVc3cMy",
  "isActive": true,
  "isVerified": false,
  "role": [
    "superadmin"
  ],
  "teamId": {
    "$oid": "68a5fba60929a08af2c0ca54"
  },
  "checkTTL": 2592000,
  "createdAt": {
    "$date": "2025-08-20T16:45:26.227Z"
  },
  "updatedAt": {
    "$date": "2025-08-22T21:20:09.3…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ajhollid
Comment options

@Stitch10925
Comment options

@Stitch10925
Comment options

@gorkem-bwl
Comment options

Answer selected by Stitch10925
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2941 on September 11, 2025 00:47.