refactor(auth): added in correct bycrptjs

This commit is contained in:
2025-03-22 10:04:14 -05:00
parent e82ef76316
commit 208cd615af
2 changed files with 26 additions and 24 deletions

View File

@@ -1,6 +1,8 @@
import bcrypt from "bcrypt"; import bcrypt from "bcryptjs";
export const checkPassword = async (
export const checkPassword = async (currentPassword: string, dbPassword: string) => { currentPassword: string,
dbPassword: string
) => {
let decyptPass = ""; let decyptPass = "";
try { try {
decyptPass = atob(dbPassword); decyptPass = atob(dbPassword);

View File

@@ -1,4 +1,4 @@
import bcrypt from "bcrypt"; import bcrypt from "bcryptjs";
export const createPassword = async (password: string) => { export const createPassword = async (password: string) => {
// encypt password // encypt password