diff --git a/server/src/domain/auth/auth.service.ts b/server/src/domain/auth/auth.service.ts index 13c69d6b7..1b7a4037a 100644 --- a/server/src/domain/auth/auth.service.ts +++ b/server/src/domain/auth/auth.service.ts @@ -345,8 +345,8 @@ export class AuthService { } return new issuer.Client(metadata); - } catch (error: Error | any) { - this.logger.error(`Error in OAuth discovery: ${error}`, error?.stack); + } catch (error: any | AggregateError) { + this.logger.error(`Error in OAuth discovery: ${error}`, error?.stack, error?.errors); throw new InternalServerErrorException(`Error in OAuth discovery: ${error}`, { cause: error }); } } diff --git a/server/tsconfig.json b/server/tsconfig.json index cd7b3f1b9..d86cba04c 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -8,7 +8,7 @@ "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "target": "es2017", + "target": "es2021", "moduleResolution": "node16", "sourceMap": true, "outDir": "./dist",