diff --git a/apps/client/src/app/services/web-authn.service.ts b/apps/client/src/app/services/web-authn.service.ts index 95c264310..b0425ce89 100644 --- a/apps/client/src/app/services/web-authn.service.ts +++ b/apps/client/src/app/services/web-authn.service.ts @@ -45,6 +45,9 @@ export class WebAuthnService { return of(null); }), switchMap((attOps) => { + if (!attOps) { + throw new Error('Could not generate registration options'); + } return startRegistration({ optionsJSON: attOps }); }), switchMap((credential) => {