diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
commit | a59634a1a9b0393622fb121fbe229132c01a2624 (patch) | |
tree | cb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/server/src/helpers/parseAuthenticatorData.ts | |
parent | e0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff) |
Use single-quotes and increase line width
Diffstat (limited to 'packages/server/src/helpers/parseAuthenticatorData.ts')
-rw-r--r-- | packages/server/src/helpers/parseAuthenticatorData.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/server/src/helpers/parseAuthenticatorData.ts b/packages/server/src/helpers/parseAuthenticatorData.ts index 9e02037..497f2d4 100644 --- a/packages/server/src/helpers/parseAuthenticatorData.ts +++ b/packages/server/src/helpers/parseAuthenticatorData.ts @@ -1,9 +1,9 @@ import { AuthenticationExtensionsAuthenticatorOutputs, decodeAuthenticatorExtensions, -} from "./decodeAuthenticatorExtensions.ts"; -import { isoCBOR, isoUint8Array } from "./iso/index.ts"; -import { COSEPublicKey } from "./cose.ts"; +} from './decodeAuthenticatorExtensions.ts'; +import { isoCBOR, isoUint8Array } from './iso/index.ts'; +import { COSEPublicKey } from './cose.ts'; /** * Make sense of the authData buffer contained in an Attestation @@ -63,8 +63,7 @@ export function parseAuthenticatorData( pointer += firstEncoded.byteLength; } - let extensionsData: AuthenticationExtensionsAuthenticatorOutputs | undefined = - undefined; + let extensionsData: AuthenticationExtensionsAuthenticatorOutputs | undefined = undefined; let extensionsDataBuffer: Uint8Array | undefined = undefined; if (flags.ed) { @@ -76,7 +75,7 @@ export function parseAuthenticatorData( // Pointer should be at the end of the authenticator data, otherwise too much data was sent if (authData.byteLength > pointer) { - throw new Error("Leftover bytes detected while parsing authenticator data"); + throw new Error('Leftover bytes detected while parsing authenticator data'); } return _parseAuthenticatorDataInternals.stubThis({ |