Skip to content

Commit

Permalink
chore(backend): better error message for unsupported attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Jul 20, 2023
1 parent 509e3f9 commit 9d0e7d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9d0e7d8

Please sign in to comment.