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

This commit is contained in:
LongYinan
2023-05-13 02:48:38 +08:00
parent 5fcaf7eef9
commit 1aef8862ad
7 changed files with 147 additions and 73 deletions

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',