From ed5f370bdb721145ba25908bf915843dd4dce7f3 Mon Sep 17 00:00:00 2001 From: "IceHe.xyz" Date: Thu, 19 May 2022 13:51:54 +0800 Subject: [PATCH] refactor(core): remove SignInSocial log from POST /session/sign-in/social (#890) --- packages/core/src/routes/session.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/core/src/routes/session.ts b/packages/core/src/routes/session.ts index b98158b84..2f800c231 100644 --- a/packages/core/src/routes/session.ts +++ b/packages/core/src/routes/session.ts @@ -196,15 +196,11 @@ export default function sessionRoutes(router: T, prov }), async (ctx, next) => { const { connectorId, state, redirectUri } = ctx.guard.body; - const type = 'SignInSocial'; - ctx.log(type, { connectorId, state, redirectUri }); - assertThat(state && redirectUri, 'session.insufficient_info'); const connector = await getSocialConnectorInstanceById(connectorId); assertThat(connector.connector.enabled, 'connector.not_enabled'); const redirectTo = await connector.getAuthorizationUri(redirectUri, state); ctx.body = { redirectTo }; - ctx.log(type, { redirectTo }); return next(); }