diff options
Diffstat (limited to 'core/src/services')
-rw-r--r-- | core/src/services/UnifiedSearchService.js | 2 | ||||
-rw-r--r-- | core/src/services/WebAuthnAuthenticationService.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js index 1fa5cae8ef8..7067c994c90 100644 --- a/core/src/services/UnifiedSearchService.js +++ b/core/src/services/UnifiedSearchService.js @@ -82,7 +82,7 @@ export function search({ type, query, cursor, since, until, limit, person, extra * Get the list of active contacts * * @param {object} filter filter contacts by string - * @param filter.searchTerm + * @param {string} filter.searchTerm the query * @return {object} {request: Promise} */ export async function getContacts({ searchTerm }) { diff --git a/core/src/services/WebAuthnAuthenticationService.ts b/core/src/services/WebAuthnAuthenticationService.ts index 82a07ae35ad..df1837254ad 100644 --- a/core/src/services/WebAuthnAuthenticationService.ts +++ b/core/src/services/WebAuthnAuthenticationService.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import type { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types' +import type { AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/browser' import { startAuthentication as startWebauthnAuthentication } from '@simplewebauthn/browser' import { generateUrl } from '@nextcloud/router' @@ -27,7 +27,7 @@ export async function startAuthentication(loginName: string) { logger.error('No valid credentials returned for webauthn') throw new NoValidCredentials() } - return await startWebauthnAuthentication(data) + return await startWebauthnAuthentication({ optionsJSON: data }) } /** |