From 2c51287bec3592ebf7d40d886c41da8fb51cbc21 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 20 May 2020 08:44:12 -0700 Subject: Initialize lerna project and move code to `server` --- src/helpers/decodeClientDataJSON.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/helpers/decodeClientDataJSON.ts (limited to 'src/helpers/decodeClientDataJSON.ts') diff --git a/src/helpers/decodeClientDataJSON.ts b/src/helpers/decodeClientDataJSON.ts deleted file mode 100644 index 7aae023..0000000 --- a/src/helpers/decodeClientDataJSON.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { ClientDataJSON } from '@libTypes'; - -import asciiToBinary from './asciiToBinary'; - -/** - * Decode an authenticator's base64-encoded clientDataJSON to JSON - */ -export default function decodeClientDataJSON(data: string): ClientDataJSON { - const toString = asciiToBinary(data); - return JSON.parse(toString); -} -- cgit v1.2.3