diff options
author | Matthew Miller <matthew@millerti.me> | 2021-04-15 21:49:14 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-04-15 21:49:14 -0700 |
commit | fb732e401eaf1a9a0d1ff65fcb29343de201c140 (patch) | |
tree | 5d717ff57cfab8790a9658732634d91554029b8c /packages/browser/src/methods/startAttestation.ts | |
parent | 1a4c8ab2ab4bcb27b83b2be6d8d0fddaaa56ba50 (diff) |
Unify naming convention of string<->buffer helpers
Diffstat (limited to 'packages/browser/src/methods/startAttestation.ts')
-rw-r--r-- | packages/browser/src/methods/startAttestation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts index 5601581..379e295 100644 --- a/packages/browser/src/methods/startAttestation.ts +++ b/packages/browser/src/methods/startAttestation.ts @@ -4,7 +4,7 @@ import { AttestationCredentialJSON, } from '@simplewebauthn/typescript-types'; -import stringToArrayBuffer from '../helpers/stringToArrayBuffer'; +import utf8StringToBuffer from '../helpers/utf8StringToBuffer'; import bufferToBase64URLString from '../helpers/bufferToBase64URLString'; import base64URLStringToBuffer from '../helpers/base64URLStringToBuffer'; import supportsWebauthn from '../helpers/supportsWebauthn'; @@ -28,7 +28,7 @@ export default async function startAttestation( challenge: base64URLStringToBuffer(creationOptionsJSON.challenge), user: { ...creationOptionsJSON.user, - id: stringToArrayBuffer(creationOptionsJSON.user.id), + id: utf8StringToBuffer(creationOptionsJSON.user.id), }, excludeCredentials: creationOptionsJSON.excludeCredentials.map(toPublicKeyCredentialDescriptor), }; |