summary refs log tree commit diff
path: root/src/api/routes/auth/verify/index.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-07-28 09:26:18 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-07-28 09:26:18 +1000
commitf1f68c3d314c1b8bf42641a165ef6c9a8ebd348e (patch)
tree1a29ca81b1a4f5d7e71670821f2243f7a07cc32d /src/api/routes/auth/verify/index.ts
parentMerge branch 'master' into feat/refactorIdentify (diff)
downloadserver-f1f68c3d314c1b8bf42641a165ef6c9a8ebd348e.tar.xz
refactor checkToken
Diffstat (limited to '')
-rw-r--r--src/api/routes/auth/verify/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts

index a98c17fa..49f74277 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts
@@ -78,11 +78,10 @@ router.post( } } - const { jwtSecret } = Config.get().security; let user; try { - const userTokenData = await checkToken(token, jwtSecret, true); + const userTokenData = await checkToken(token); user = userTokenData.user; } catch { throw FieldErrors({