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

Commit 52758ef

Browse files
committed
Update types in demo.
1 parent 5800e7c commit 52758ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dev/demo/state.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import {
22
RegistrationPublicKeyCredential,
3-
RegistrationResponseJSON,
3+
RegistrationResponseExtendedJSON,
44
} from "../../webauthn-json/browser-ponyfill";
55

6-
export function getRegistrations(): RegistrationResponseJSON[] {
6+
export function getRegistrations(): RegistrationResponseExtendedJSON[] {
77
const registrations = JSON.parse(
88
localStorage.webauthnExampleRegistrations || "[]",
99
);
1010
return registrations;
1111
}
1212

1313
export function setRegistrations(
14-
registrations: RegistrationResponseJSON[],
14+
registrations: RegistrationResponseExtendedJSON[],
1515
display: boolean = true,
1616
): void {
1717
localStorage.webauthnExampleRegistrations = JSON.stringify(

0 commit comments

Comments
 (0)