Skip to content

High performance self-hosted photo and video management solution.

fix(server): better fix for the OAuth Discovery errors (#4695)

Skyler Mäntysaari2f874631701f
diff --git a/server/src/domain/auth/auth.service.ts b/server/src/domain/auth/auth.service.ts
index 13c69d6b7b..1b7a4037a9 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 cd7b3f1b9c..d86cba04c5 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",