summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeClientDataJSON.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-06-01 17:10:58 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-01 17:10:58 -0700
commit344ba5cec132724bf558b0a0c3b8e78e74624c7a (patch)
tree77cd3f7df4b15e83ded750e2a8b81715a36e4b36 /packages/server/src/helpers/decodeClientDataJSON.ts
parentc3d641b547124cca168bf9b02ab43acc3885cf5f (diff)
Move some enums and types out of types package
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.ts')
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts
index fb909cf..c0ebb2b 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.ts
@@ -1,5 +1,3 @@
-import { ClientDataJSON } from '@simplewebauthn/typescript-types';
-
import asciiToBinary from './asciiToBinary';
/**
@@ -15,3 +13,9 @@ export default function decodeClientDataJSON(data: string): ClientDataJSON {
return clientData;
}
+
+type ClientDataJSON = {
+ type: string;
+ challenge: string;
+ origin: string;
+};