Skip to content

Commit

Permalink
Update WebAuthn.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 committed Jan 4, 2024
1 parent 1f7f868 commit e7116e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Fido2.BlazorWebAssembly/wwwroot/js/WebAuthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function createCreds(options: PublicKeyCredentialCreationOptions) {
id: base64StringToUrl(newCreds.id),
rawId: toBase64Url(newCreds.rawId),
type: newCreds.type,
extensions: newCreds.getClientExtensionResults(),
clientExtensionResults: newCreds.getClientExtensionResults(),
response: {
attestationObject: toBase64Url(response.attestationObject),
clientDataJSON: toBase64Url(response.clientDataJSON),
Expand All @@ -55,6 +55,7 @@ export async function verify(options: PublicKeyCredentialRequestOptions) {
id: creds.id,
rawId: toBase64Url(creds.rawId),
type: creds.type,
clientExtensionResults: creds.getClientExtensionResults(),
response: {
authenticatorData: toBase64Url(response.authenticatorData),
clientDataJSON: toBase64Url(response.clientDataJSON),
Expand Down

0 comments on commit e7116e0

Please sign in to comment.