From ee2d1bf53590f42d03cb758f5a081704ca1aa987 Mon Sep 17 00:00:00 2001 From: simeng-li <36393111+simeng-li@users.noreply.github.com> Date: Tue, 12 Oct 2021 17:57:22 +0800 Subject: [PATCH] chore(core): throw out oidc-provider error (#128) In order to display detailed error on the page we need to throw the oidc-provider error out and catched by koa-error-handler --- packages/core/src/oidc/init.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/oidc/init.ts b/packages/core/src/oidc/init.ts index 41d09b75f..3c4652f4d 100644 --- a/packages/core/src/oidc/init.ts +++ b/packages/core/src/oidc/init.ts @@ -20,6 +20,7 @@ export default async function initOidc(app: Koa): Promise { adapter: postgresAdapter, renderError: (ctx, out, error) => { console.log('OIDC error', error); + throw error; }, cookies: { // V2: Rotate this when necessary