diff options
| author | Adam Soltys <[email protected]> | 2023-10-03 23:38:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-10-03 23:38:25 -0700 |
| commit | c5b765c5cc12d4e21135a613b3c04a72cabe9b85 (patch) | |
| tree | f86b4f90b27354e972273309f4657b5109473425 /lib/auth.js | |
| parent | 10e93dc525eba0ebb7df338ba6d5fd618fabf8ba (diff) | |
| download | coinos-server-c5b765c5cc12d4e21135a613b3c04a72cabe9b85.tar.gz coinos-server-c5b765c5cc12d4e21135a613b3c04a72cabe9b85.zip | |
check new pin length
Diffstat (limited to 'lib/auth.js')
| -rw-r--r-- | lib/auth.js | 2 |
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); |
