summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeAttestationObject.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
commita59634a1a9b0393622fb121fbe229132c01a2624 (patch)
treecb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/server/src/helpers/decodeAttestationObject.ts
parente0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff)
Use single-quotes and increase line width
Diffstat (limited to 'packages/server/src/helpers/decodeAttestationObject.ts')
-rw-r--r--packages/server/src/helpers/decodeAttestationObject.ts36
1 files changed, 18 insertions, 18 deletions
diff --git a/packages/server/src/helpers/decodeAttestationObject.ts b/packages/server/src/helpers/decodeAttestationObject.ts
index ebfe42b..3ccc47b 100644
--- a/packages/server/src/helpers/decodeAttestationObject.ts
+++ b/packages/server/src/helpers/decodeAttestationObject.ts
@@ -1,4 +1,4 @@
-import { isoCBOR } from "./iso/index.ts";
+import { isoCBOR } from './iso/index.ts';
/**
* Convert an AttestationObject buffer to a proper object
@@ -14,18 +14,18 @@ export function decodeAttestationObject(
}
export type AttestationFormat =
- | "fido-u2f"
- | "packed"
- | "android-safetynet"
- | "android-key"
- | "tpm"
- | "apple"
- | "none";
+ | 'fido-u2f'
+ | 'packed'
+ | 'android-safetynet'
+ | 'android-key'
+ | 'tpm'
+ | 'apple'
+ | 'none';
export type AttestationObject = {
- get(key: "fmt"): AttestationFormat;
- get(key: "attStmt"): AttestationStatement;
- get(key: "authData"): Uint8Array;
+ get(key: 'fmt'): AttestationFormat;
+ get(key: 'attStmt'): AttestationStatement;
+ get(key: 'authData'): Uint8Array;
};
/**
@@ -33,13 +33,13 @@ export type AttestationObject = {
* possible values within it.
*/
export type AttestationStatement = {
- get(key: "sig"): Uint8Array | undefined;
- get(key: "x5c"): Uint8Array[] | undefined;
- get(key: "response"): Uint8Array | undefined;
- get(key: "alg"): number | undefined;
- get(key: "ver"): string | undefined;
- get(key: "certInfo"): Uint8Array | undefined;
- get(key: "pubArea"): Uint8Array | undefined;
+ get(key: 'sig'): Uint8Array | undefined;
+ get(key: 'x5c'): Uint8Array[] | undefined;
+ get(key: 'response'): Uint8Array | undefined;
+ get(key: 'alg'): number | undefined;
+ get(key: 'ver'): string | undefined;
+ get(key: 'certInfo'): Uint8Array | undefined;
+ get(key: 'pubArea'): Uint8Array | undefined;
// `Map` properties
readonly size: number;
};