diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:13:53 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:13:53 -0700 |
commit | 546af2e311933533bd89bb955e43dcfa226bfc54 (patch) | |
tree | c9c84173d94122c9fc9f4b7a76040164fa020d91 /packages/server/src/helpers/decodeClientDataJSON.ts | |
parent | 6b3859b5e3323f87b462bb6229451aa6e897295a (diff) |
Export named decodeClientDataJSON()
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.ts')
-rw-r--r-- | packages/server/src/helpers/decodeClientDataJSON.ts | 2 |
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); |