aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/service/WebAuthnRegistrationSerice.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/service/WebAuthnRegistrationSerice.ts')
-rw-r--r--apps/settings/src/service/WebAuthnRegistrationSerice.ts6
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..0d1689ab90a 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/browser'
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)