summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-06-07 22:35:43 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-07 22:35:43 -0700
commit14aa5d112146113fa155e4e8dbca09fa6e46512c (patch)
treec615ffe2667529ad384407eaf0b3e563398d745f /packages/server/src/helpers
parentdabd9d4feea61fff1e6ae423b6b7194c067b3126 (diff)
Add more properties to ClientDataJSON type
Diffstat (limited to 'packages/server/src/helpers')
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts
index da0c693..a3b7881 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.ts
@@ -14,4 +14,9 @@ type ClientDataJSON = {
type: string;
challenge: string;
origin: string;
+ crossOrigin?: boolean;
+ tokenBinding?: {
+ id?: string;
+ status: 'present' | 'supported' | 'not-supported';
+ };
};