chore(server): remove bcrypt to avoid node-gyp usage (#2349)

This commit is contained in:
LongYinan
2023-05-13 02:48:38 +08:00
committed by GitHub
parent b5a7f8b7eb
commit 00fd468e9b
7 changed files with 147 additions and 73 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import crypto from 'node:crypto';
import { genSalt } from 'bcrypt';
import { genSalt } from '@node-rs/bcrypt';
const { privateKey, publicKey } = crypto.generateKeyPairSync('ec', {
namedCurve: 'prime256v1',