diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-17 11:19:51 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-19 11:19:48 +0100 |
commit | 60dd89e04cf876ca6027ba6200387b014007df81 (patch) | |
tree | 0a0eb17f1f46f4a018256f55ef5faaf36b7d3797 /apps/settings/src | |
parent | 823551d5c3d9b134586a1874c14f88d57e887658 (diff) | |
download | nextcloud-server-60dd89e04cf876ca6027ba6200387b014007df81.tar.gz nextcloud-server-60dd89e04cf876ca6027ba6200387b014007df81.zip |
fix(core): adjust fronend code for changes in webauthn library
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/service/WebAuthnRegistrationSerice.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings/src/service/WebAuthnRegistrationSerice.ts b/apps/settings/src/service/WebAuthnRegistrationSerice.ts index 7e881ce61e2..8f9e085310c 100644 --- a/apps/settings/src/service/WebAuthnRegistrationSerice.ts +++ b/apps/settings/src/service/WebAuthnRegistrationSerice.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import type { RegistrationResponseJSON } from '@simplewebauthn/types' +import type { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON } from '@simplewebauthn/types' import { translate as t } from '@nextcloud/l10n' import { generateUrl } from '@nextcloud/router' @@ -21,9 +21,9 @@ export async function startRegistration() { try { logger.debug('Fetching webauthn registration data') - const { data } = await axios.get(url) + const { data } = await axios.get<PublicKeyCredentialCreationOptionsJSON>(url) logger.debug('Start webauthn registration') - const attrs = await registerWebAuthn(data) + const attrs = await registerWebAuthn({ optionsJSON: data }) return attrs } catch (e) { logger.error(e as Error) |