aboutsummaryrefslogtreecommitdiffstats
path: root/lib/auth.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-10-03 23:38:22 -0700
committerAdam Soltys <[email protected]>2023-10-03 23:38:25 -0700
commitc5b765c5cc12d4e21135a613b3c04a72cabe9b85 (patch)
treef86b4f90b27354e972273309f4657b5109473425 /lib/auth.js
parent10e93dc525eba0ebb7df338ba6d5fd618fabf8ba (diff)
downloadcoinos-server-c5b765c5cc12d4e21135a613b3c04a72cabe9b85.tar.gz
coinos-server-c5b765c5cc12d4e21135a613b3c04a72cabe9b85.zip
check new pin length
Diffstat (limited to 'lib/auth.js')
-rw-r--r--lib/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth.js b/lib/auth.js
index 0533de31..55de6df0 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -37,7 +37,7 @@ export const jwtStrategy = new jwt.Strategy(
let user;
if (payload.id) {
user = await g(`user:${payload.id}`);
- if (typeof user === "string") await g(`user:${user}`);
+ if (typeof user === "string") user = await g(`user:${user}`);
}
next(null, user);