From dbc7b3ebae0a4701e49b5109f2d619939c253195 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 1 Jul 2026 17:36:00 +0200 Subject: [PATCH] Refactoring --- apps/client/src/app/services/user/user.service.ts | 14 +++++++++++--- apps/client/src/app/services/web-authn.service.ts | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.ts index 1cde78626..52f33dc5a 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -128,10 +128,18 @@ export class UserService extends ObservableStore { const cookies = await cookieStore.getAll(); const cookieNames = cookies - .map(({ name }) => name) - .filter((name): name is string => !!name); + .map(({ name }) => { + return name; + }) + .filter((name): name is string => { + return !!name; + }); - await Promise.all(cookieNames.map((name) => cookieStore.delete(name))); + await Promise.all( + cookieNames.map((name) => { + return cookieStore.delete(name); + }) + ); } private fetchUser(): Observable { diff --git a/apps/client/src/app/services/web-authn.service.ts b/apps/client/src/app/services/web-authn.service.ts index bc6995efd..17e980193 100644 --- a/apps/client/src/app/services/web-authn.service.ts +++ b/apps/client/src/app/services/web-authn.service.ts @@ -46,6 +46,7 @@ export class WebAuthnService { if (!attOps) { throw new Error('Could not generate registration options'); } + return startRegistration({ optionsJSON: attOps }); }), switchMap((credential) => {