summary refs log tree commit diff
path: root/src/api/middlewares
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/middlewares
parentMerge branch 'master' into feat/refactorIdentify (diff)
downloadserver-f1f68c3d314c1b8bf42641a165ef6c9a8ebd348e.tar.xz
refactor checkToken
Diffstat (limited to 'src/api/middlewares')
-rw-r--r--src/api/middlewares/Authentication.ts7
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;