summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAttestation.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-25 11:50:22 -0700
committerGitHub <noreply@github.com>2020-05-25 11:50:22 -0700
commitd0205b9a4f2b4e304447e8072e4384f52dcc0c51 (patch)
treef68fe8f67d53efb6faa84d8e35c25a65b315507a /packages/browser/src/methods/startAttestation.ts
parent2cda08e3fc9935eff5613f08c7f9e4a30cf19c85 (diff)
parent5ef053d8785afc0cc25936add1b9b9097efbe45e (diff)
Merge pull request #10 from MasterKale/feature/linting
feature/linting
Diffstat (limited to 'packages/browser/src/methods/startAttestation.ts')
-rw-r--r--packages/browser/src/methods/startAttestation.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/methods/startAttestation.ts b/packages/browser/src/methods/startAttestation.ts
index 1a4b13d..c095670 100644
--- a/packages/browser/src/methods/startAttestation.ts
+++ b/packages/browser/src/methods/startAttestation.ts
@@ -14,7 +14,7 @@ import supportsWebauthn from '../helpers/supportsWebauthn';
* @param creationOptionsJSON Output from @webauthntine/server's generateAttestationOptions(...)
*/
export default async function startAttestation(
- creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON
+ creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON,
): Promise<AuthenticatorAttestationResponseJSON> {
if (!supportsWebauthn()) {
throw new Error('WebAuthn is not supported in this browser');
@@ -37,7 +37,7 @@ export default async function startAttestation(
throw new Error('Attestation was not completed');
}
- const { response } = (credential as AttestationCredential);
+ const { response } = credential as AttestationCredential;
// Convert values to base64 to make it easier to send back to the server
return {