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

This commit is contained in:
LongYinan authored and GitHub committed 2023-05-12 13:48:38 -05:00
1 parent b5a7f8b7eb
commit 00fd468e9b
7 files changed
+147 -73

No files matched your search

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