mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	chore(backend): better error message for unsupported attestation (#11333)
This commit is contained in:
		
							parent
							
								
									df2b61fcc6
								
							
						
					
					
						commit
						64c142b1ca
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -103,7 +103,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
 | 
			
		|||
			const procedures = this.twoFactorAuthenticationService.getProcedures();
 | 
			
		||||
 | 
			
		||||
			if (!(procedures as any)[attestation.fmt]) {
 | 
			
		||||
				throw new Error('unsupported fmt');
 | 
			
		||||
				throw new Error(`unsupported fmt: ${attestation.fmt}. Supported ones: ${Object.keys(procedures)}`);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			const verificationData = (procedures as any)[attestation.fmt].verify({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue