From 19aa766bfbd052a96fe644d98fc3595c2ce1aa68 Mon Sep 17 00:00:00 2001 From: GB27247 <148772006+GB27247@users.noreply.github.com> Date: Mon, 20 May 2024 16:16:16 +0000 Subject: [PATCH] Remove urlencoded body parser --- backend/src/connectors/authentication/oauth.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/connectors/authentication/oauth.ts b/backend/src/connectors/authentication/oauth.ts index 16345d34f..ce8816ac1 100644 --- a/backend/src/connectors/authentication/oauth.ts +++ b/backend/src/connectors/authentication/oauth.ts @@ -1,4 +1,3 @@ -import parser from 'body-parser' import MongoStore from 'connect-mongo' import { NextFunction, Request, Response, Router } from 'express' import session from 'express-session' @@ -34,7 +33,6 @@ export class OauthAuthenticationConnector extends BaseAuthenticationConnector { mongoUrl: getConnectionURI(), }), }), - parser.urlencoded({ extended: true }), grant.default.express(config.oauth.grant), this.getRoutes(), ],