From 5af274ef0ae487653e516a16c0fa4d943b5efde4 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Thu, 16 Nov 2023 20:21:33 +0100 Subject: [PATCH] upd: register contentParser --- packages/backend/src/server/oauth/OAuth2ProviderService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/server/oauth/OAuth2ProviderService.ts b/packages/backend/src/server/oauth/OAuth2ProviderService.ts index cbb91543c3..7ccf3a297e 100644 --- a/packages/backend/src/server/oauth/OAuth2ProviderService.ts +++ b/packages/backend/src/server/oauth/OAuth2ProviderService.ts @@ -78,6 +78,8 @@ export class OAuth2ProviderService { payload.on('error', done); }); + fastify.register(multer.contentParser); + fastify.get('/oauth/authorize', async (request, reply) => { const query: any = request.query; let param = "mastodon=true";