summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeAttestationObject.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-03-10 19:57:14 -0800
committerMatthew Miller <matthew@millerti.me>2021-03-10 19:57:14 -0800
commitad410ae9c6e62972fb8593f91d6f111c33f7efa9 (patch)
tree437a0f2e3a5d8afc0cdf0d5aff9ec29578cfec16 /packages/server/src/helpers/decodeAttestationObject.ts
parent0326db684cc70f1b0394f4d701ceb3c04ce39ee5 (diff)
Remove unused import
Diffstat (limited to 'packages/server/src/helpers/decodeAttestationObject.ts')
-rw-r--r--packages/server/src/helpers/decodeAttestationObject.ts5
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];