0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-17 22:31:28 -05:00

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
This commit is contained in:
simeng-li 2021-10-12 17:57:22 +08:00 committed by GitHub
parent 5f60fe491a
commit ee2d1bf535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,7 @@ export default async function initOidc(app: Koa): Promise<Provider> {
adapter: postgresAdapter,
renderError: (ctx, out, error) => {
console.log('OIDC error', error);
throw error;
},
cookies: {
// V2: Rotate this when necessary