Skip to content

[HAPI-243] Installing bcrypt and removing bcryptjs

Pre-release
Pre-release

Choose a tag to compare

@FelipeRamosDev FelipeRamosDev released this 27 Jun 21:48
ecf0166

This pull request replaces the bcrypt library with bcryptjs across the codebase to address compatibility issues and ensure consistent functionality. Additionally, the package.json file has been updated to reflect this change and increment the version number.

Library Replacement: bcrypt to bcryptjs

  • src/services/Auth/index.js: Replaced all instances of bcrypt with bcryptjs in the AuthService class, including methods like genSalt, createHash, and validateCredentials. [1] [2] [3] [4]
  • docs/services_Auth_index.js.html: Updated the documentation to reflect the library change from bcrypt to bcryptjs.

Dependency Updates

  • package.json: Updated the bcrypt dependency to bcryptjs (version ^3.0.2) and incremented the application version from 0.7.12 to 0.7.13. [1] [2]