aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/utils.js b/lib/utils.js
index 929adbf1..ae794a5e 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -12,11 +12,6 @@ export const wait = async (f, s = 300, n = 50) => {
return f();
};
-export const requirePin = async ({ body, user }) => {
- if (!user || (user.pin && user.pin !== body.pin))
- throw new Error("Invalid pin");
-};
-
export const prod = process.env.NODE_ENV === "production";
export const fail = (msg) => {
throw new Error(msg);