Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit b96e608

Browse files
committed
[browser-ponyfill] Change JSON types to the extended versions and export all.
1 parent 33dd44e commit b96e608

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/webauthn-json/browser-ponyfill.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
import {
22
createExtendedRequestFromJSON as parseCreationOptionsFromJSON,
33
createExtendedResponseToJSON,
4+
CredentialCreationOptionsExtendedJSON,
5+
CredentialRequestOptionsExtendedJSON,
46
getExtendedRequestFromJSON as parseRequestOptionsFromJSON,
57
getExtendedResponseToJSON,
6-
PublicKeyCredentialWithAssertionExtendedResultsJSON as AuthenticationResponseJSON,
7-
PublicKeyCredentialWithAttestationExtendedResultsJSON as RegistrationResponseJSON,
8+
PublicKeyCredentialWithAssertionExtendedResultsJSON as AuthenticationResponseExtendedJSON,
9+
PublicKeyCredentialWithAttestationExtendedResultsJSON as RegistrationResponseExtendedJSON,
810
supported,
911
} from "./extended";
1012

1113
export { parseCreationOptionsFromJSON, parseRequestOptionsFromJSON, supported };
12-
export type { AuthenticationResponseJSON, RegistrationResponseJSON };
14+
export type {
15+
CredentialCreationOptionsExtendedJSON,
16+
CredentialRequestOptionsExtendedJSON,
17+
AuthenticationResponseExtendedJSON,
18+
RegistrationResponseExtendedJSON,
19+
};
1320

1421
export interface RegistrationPublicKeyCredential extends PublicKeyCredential {
15-
toJSON(): RegistrationResponseJSON;
22+
toJSON(): RegistrationResponseExtendedJSON;
1623
}
1724

1825
export async function create(
@@ -26,7 +33,7 @@ export async function create(
2633
}
2734

2835
export interface AuthenticationPublicKeyCredential extends PublicKeyCredential {
29-
toJSON(): AuthenticationResponseJSON;
36+
toJSON(): AuthenticationResponseExtendedJSON;
3037
}
3138

3239
export async function get(

0 commit comments

Comments
 (0)