diff --git a/pages/api/users/login.ts b/pages/api/users/login.ts index ebf784e..29163a4 100644 --- a/pages/api/users/login.ts +++ b/pages/api/users/login.ts @@ -15,7 +15,7 @@ export default nextConnect< NextApiResponse> >(NextConnectConfig) .use(passport.initialize()) - .use(async (req, res, next) => { + .use((req, res, next) => { const parsed = LoginValidationSchema.safeParse(req.body); if (!parsed.success) { throw new ServerError('Username and password are required.', 400);