From b3353f20d5678f18520b45e723f9c736b471ddb1 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 21 Mar 2021 18:35:52 -0700 Subject: [PATCH] chore: Move error logging in passport --- server/middlewares/passport.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/middlewares/passport.js b/server/middlewares/passport.js index 5dee8e9b..716bf884 100644 --- a/server/middlewares/passport.js +++ b/server/middlewares/passport.js @@ -10,8 +10,9 @@ export default function createMiddleware(providerName: string) { { session: false }, (err, _, result: AccountProvisionerResult) => { if (err) { + console.error(err); + if (err.id) { - console.error(err); const notice = err.id.replace(/_/g, "-"); return ctx.redirect(`${err.redirectUrl || "/"}?notice=${notice}`); }