diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-28 09:26:18 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-07-28 09:26:18 +1000 |
commit | f1f68c3d314c1b8bf42641a165ef6c9a8ebd348e (patch) | |
tree | 1a29ca81b1a4f5d7e71670821f2243f7a07cc32d /src/api/middlewares | |
parent | Merge branch 'master' into feat/refactorIdentify (diff) | |
download | server-f1f68c3d314c1b8bf42641a165ef6c9a8ebd348e.tar.xz |
refactor checkToken
Diffstat (limited to 'src/api/middlewares')
-rw-r--r-- | src/api/middlewares/Authentication.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index d0e4d8a0..812888a3 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -92,12 +92,7 @@ export async function Authentication( Sentry.setUser({ id: req.user_id }); try { - const { jwtSecret } = Config.get().security; - - const { decoded, user } = await checkToken( - req.headers.authorization, - jwtSecret, - ); + const { decoded, user } = await checkToken(req.headers.authorization); req.token = decoded; req.user_id = decoded.id; |