mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(server): better fix for the OAuth Discovery errors (#4695)
* fix(server/oauth): Handle errors from OAuth Discovery. * fix(server/oauth): Better fix for OAuth discovery error. * This doesn't break tests. * Update server/tsconfig.json Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> * Revert back to the mostly original way. --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							9f56bf0ab9
						
					
				
				
					commit
					2f87463170
				
			@@ -345,8 +345,8 @@ export class AuthService {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      return new issuer.Client(metadata);
 | 
					      return new issuer.Client(metadata);
 | 
				
			||||||
    } catch (error: Error | any) {
 | 
					    } catch (error: any | AggregateError) {
 | 
				
			||||||
      this.logger.error(`Error in OAuth discovery: ${error}`, error?.stack);
 | 
					      this.logger.error(`Error in OAuth discovery: ${error}`, error?.stack, error?.errors);
 | 
				
			||||||
      throw new InternalServerErrorException(`Error in OAuth discovery: ${error}`, { cause: error });
 | 
					      throw new InternalServerErrorException(`Error in OAuth discovery: ${error}`, { cause: error });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    "experimentalDecorators": true,
 | 
					    "experimentalDecorators": true,
 | 
				
			||||||
    "allowSyntheticDefaultImports": true,
 | 
					    "allowSyntheticDefaultImports": true,
 | 
				
			||||||
    "resolveJsonModule": true,
 | 
					    "resolveJsonModule": true,
 | 
				
			||||||
    "target": "es2017",
 | 
					    "target": "es2021",
 | 
				
			||||||
    "moduleResolution": "node16",
 | 
					    "moduleResolution": "node16",
 | 
				
			||||||
    "sourceMap": true,
 | 
					    "sourceMap": true,
 | 
				
			||||||
    "outDir": "./dist",
 | 
					    "outDir": "./dist",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user