diff options
author | Matthew Miller <matthew@millerti.me> | 2021-02-04 09:45:52 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-02-04 09:45:52 -0800 |
commit | c58ca6abf0d64a85771a865cf59f9783a20c66f0 (patch) | |
tree | 3f44297f5b47abf1b88db49ae11e399282a9adaf /packages/browser/src/methods/startAttestation.ts | |
parent | d8cbcb40b9f32d7a6eab82f5e31c6e5272c9d163 (diff) |
Restore userID argument in attestation options
Diffstat (limited to 'packages/browser/src/methods/startAttestation.ts')
-rw-r--r-- | packages/browser/src/methods/startAttestation.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index 9594bb9..0b2235d 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -4,6 +4,7 @@ import { AttestationCredentialJSON, } from '@simplewebauthn/typescript-types'; +import toUint8Array from '../helpers/toUint8Array'; import bufferToBase64URLString from '../helpers/bufferToBase64URLString'; import base64URLStringToBuffer from '../helpers/base64URLStringToBuffer'; import supportsWebauthn from '../helpers/supportsWebauthn'; @@ -27,7 +28,7 @@ export default async function startAttestation( challenge: base64URLStringToBuffer(creationOptionsJSON.challenge), user: { ...creationOptionsJSON.user, - id: base64URLStringToBuffer(creationOptionsJSON.user.id), + id: toUint8Array(creationOptionsJSON.user.id), }, excludeCredentials: creationOptionsJSON.excludeCredentials.map(toPublicKeyCredentialDescriptor), }; |