Skip to content

Commit 59e7242

Browse files
committed
Removed console log and constrained type
1 parent 8919aa8 commit 59e7242

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/javascript-sdk/src/fr-webauthn/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ abstract class FRWebAuthn {
132132
} catch {
133133
throw new Error('Error determining conditional mediation support');
134134
}
135-
135+
136136
return false;
137137
}
138138

@@ -377,7 +377,6 @@ abstract class FRWebAuthn {
377377
} else {
378378
// eslint-disable-next-line no-console
379379
FRLogger.warn('Conditional UI was requested, but is not supported by this browser.');
380-
console.warn('Conditional UI was requested, but is not supported by this browser.');
381380
}
382381
}
383382

packages/javascript-sdk/src/fr-webauthn/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ interface WebAuthnRegistrationMetadata {
7777
}
7878

7979
interface WebAuthnAuthenticationMetadata {
80-
_action?: string;
80+
_action?: 'webauthn_authentication';
8181
acceptableCredentials?: string;
8282
allowCredentials?: string;
8383
_allowCredentials?: PublicKeyCredentialDescriptor[];
@@ -88,7 +88,7 @@ interface WebAuthnAuthenticationMetadata {
8888
userVerification: UserVerificationType;
8989
conditionalWebAuthn?: boolean;
9090
extensions?: Record<string, unknown>;
91-
_type?: string;
91+
_type?: 'WebAuthn';
9292
supportsJsonResponse?: boolean;
9393
}
9494

0 commit comments

Comments
 (0)