summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/decodeClientDataJSON.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-27 22:13:53 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-27 22:13:53 -0700
commit546af2e311933533bd89bb955e43dcfa226bfc54 (patch)
treec9c84173d94122c9fc9f4b7a76040164fa020d91 /packages/server/src/helpers/decodeClientDataJSON.ts
parent6b3859b5e3323f87b462bb6229451aa6e897295a (diff)
Export named decodeClientDataJSON()
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);