summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeClientDataJSON.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-24 17:51:31 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-24 17:51:31 -0700
commitb2d897ff93444b5e25b3e26892b627f2b771b5bf (patch)
treef769388a9ec389a3dad6e5b1a8b8cc82ee21621b /packages/server/src/helpers/decodeClientDataJSON.test.ts
parent494183f116660dbfbef50bc56cd2ec3cf7cc11a9 (diff)
Decode `challenge` when decoding client data
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.test.ts')
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.test.ts b/packages/server/src/helpers/decodeClientDataJSON.test.ts
index b9868f8..d3cea88 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.test.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.test.ts
@@ -7,7 +7,7 @@ test('should convert base64-encoded attestation clientDataJSON to JSON', () => {
'sImhhc2hBbGdvcml0aG0iOiJTSEEtMjU2Iiwib3JpZ2luIjoiaHR0cHM6Ly9jbG92ZXIubWlsbGVydGltZS5kZX' +
'Y6MzAwMCIsInR5cGUiOiJ3ZWJhdXRobi5jcmVhdGUifQ=='
)).toEqual({
- challenge: 'U2d4N3Y0M09McldPb1R5ZExnTloy',
+ challenge: 'Sgx7v43OLrWOoTydLgNZ2',
clientExtensions: {},
hashAlgorithm: 'SHA-256',
origin: 'https://clover.millertime.dev:3000',