We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 380a7a4 commit 313e4baCopy full SHA for 313e4ba
pages/api/hash.js
@@ -1,7 +1,7 @@
1
import { connectToDatabase } from "../../lib/mongo";
2
import { hash, genSalt, compare } from "bcryptjs";
3
4
-export default async function hash(req, res) {
+export default async function hashPassword(req, res) {
5
const { db } = await connectToDatabase();
6
7
const { id, password } = req.body;
0 commit comments