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:
parent
5f60fe491a
commit
ee2d1bf535
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue