summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeClientDataJSON.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-28 10:03:52 -0700
committerGitHub <noreply@github.com>2022-07-28 10:03:52 -0700
commit522f00d9ae613ff1f51f0c1aca85a6ae129381c5 (patch)
tree2ffa63377b3cce99dc1b7c7459292c071ce709a0 /packages/server/src/helpers/decodeClientDataJSON.ts
parent369708726378b0b24f873982ac9ca31d706fe2fe (diff)
parent7b1cadfaa2c5f78b56c4424db991674fddd7e152 (diff)
Merge pull request #234 from MasterKale/all-named-exports
All named exports
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.ts')
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts
index 40ce0c0..b3094db 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.ts
@@ -3,7 +3,7 @@ import base64url from 'base64url';
/**
* Decode an authenticator's base64url-encoded clientDataJSON to JSON
*/
-export default function decodeClientDataJSON(data: string): ClientDataJSON {
+export function decodeClientDataJSON(data: string): ClientDataJSON {
const toString = base64url.decode(data);
const clientData: ClientDataJSON = JSON.parse(toString);