From 3880e4c8d71feaf9d53d368058ef40ffaf616194 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 10 Apr 2024 05:30:10 +0200 Subject: fix: Use `@simplewebauthn` for frontend logic This simplifies the code a lot and fixes errors with the exisiting custom code, where slightly different base64 values were emitted which are not valid according to the standard. ref: https://github.com/web-auth/webauthn-framework/issues/510 Signed-off-by: Ferdinand Thiessen --- .../src/components/login/PasswordLessLoginForm.vue | 134 ++++----------------- core/src/services/WebAuthnAuthenticationService.js | 44 ------- core/src/services/WebAuthnAuthenticationService.ts | 59 +++++++++ core/src/views/Login.vue | 2 - 4 files changed, 83 insertions(+), 156 deletions(-) delete mode 100644 core/src/services/WebAuthnAuthenticationService.js create mode 100644 core/src/services/WebAuthnAuthenticationService.ts (limited to 'core/src') diff --git a/core/src/components/login/PasswordLessLoginForm.vue b/core/src/components/login/PasswordLessLoginForm.vue index 8a3886e52d0..128adddc303 100644 --- a/core/src/components/login/PasswordLessLoginForm.vue +++ b/core/src/components/login/PasswordLessLoginForm.vue @@ -1,5 +1,5 @@