diff options
author | Matthew Miller <matthew@millerti.me> | 2021-03-12 21:20:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 21:20:13 -0800 |
commit | d7b0ca3fc65cac576ceb3e01ef467ab90c20c134 (patch) | |
tree | 72a80f52a82e47f28061d66a15ed2fd5190903c4 /packages/server/src/helpers/decodeAttestationObject.ts | |
parent | a57624c339769786dbb29880f003ba60e39f7c43 (diff) | |
parent | b8378c8db6aa8920dbd7a3256e840d99ba37e3a6 (diff) |
Merge pull request #108 from MasterKale/feat/cleanup-pass
Cleanup Pass 03-2021
Diffstat (limited to 'packages/server/src/helpers/decodeAttestationObject.ts')
-rw-r--r-- | packages/server/src/helpers/decodeAttestationObject.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/server/src/helpers/decodeAttestationObject.ts b/packages/server/src/helpers/decodeAttestationObject.ts index 362e8a0..8b69c90 100644 --- a/packages/server/src/helpers/decodeAttestationObject.ts +++ b/packages/server/src/helpers/decodeAttestationObject.ts @@ -1,10 +1,9 @@ -import base64url from 'base64url'; import cbor from 'cbor'; /** - * Convert an AttestationObject from base64url string to a proper object + * Convert an AttestationObject buffer to a proper object * - * @param base64AttestationObject Base64URL-encoded Attestation Object + * @param base64AttestationObject Attestation Object buffer */ export default function decodeAttestationObject(attestationObject: Buffer): AttestationObject { const toCBOR: AttestationObject = cbor.decodeAllSync(attestationObject)[0]; |