Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions packages/core/auth-js/src/lib/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,10 +763,10 @@ export class WebAuthnApi {
rpId = typeof window !== 'undefined' ? window.location.hostname : undefined,
rpOrigins = typeof window !== 'undefined' ? [window.location.origin] : undefined,
signal,
},
} = {},
}: {
factorId: string
webauthn: {
webauthn?: {
rpId?: string
rpOrigins?: string[]
signal?: AbortSignal
Expand Down Expand Up @@ -844,14 +844,18 @@ export class WebAuthnApi {
public async _register(
{
friendlyName,
rpId = typeof window !== 'undefined' ? window.location.hostname : undefined,
rpOrigins = typeof window !== 'undefined' ? [window.location.origin] : undefined,
signal,
webauthn: {
rpId = typeof window !== 'undefined' ? window.location.hostname : undefined,
rpOrigins = typeof window !== 'undefined' ? [window.location.origin] : undefined,
signal,
} = {},
}: {
friendlyName: string
rpId?: string
rpOrigins?: string[]
signal?: AbortSignal
webauthn?: {
rpId?: string
rpOrigins?: string[]
signal?: AbortSignal
}
},
overrides?: Partial<PublicKeyCredentialCreationOptionsFuture>
): Promise<RequestResult<AuthMFAVerifyResponseData, WebAuthnError | AuthError>> {
Expand Down