summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeClientDataJSON.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-11-12 19:51:29 -0800
committerMatthew Miller <matthew@millerti.me>2022-11-12 19:51:29 -0800
commit6e3db9655c6aa2aef590c66295df500271bfdd17 (patch)
tree03ac98e1da17f97c4f7da151868a16ca445e0ec2 /packages/server/src/helpers/decodeClientDataJSON.ts
parent6a4ced11ee7d1e872af4215f9aba82c7b64119c2 (diff)
Figure out a better pattern for exposing iso funcs
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.ts')
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts
index 82ca17b..36a949e 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.ts
@@ -1,10 +1,10 @@
-import * as isoBase64URL from "./isoBase64URL";
+import { isoBase64URL } from "./iso";
/**
* Decode an authenticator's base64url-encoded clientDataJSON to JSON
*/
export function decodeClientDataJSON(data: string): ClientDataJSON {
- const toString = base64url.toString(data);
+ const toString = isoBase64URL.toString(data);
const clientData: ClientDataJSON = JSON.parse(toString);
return clientData;