diff options
author | Matthew Miller <matthew@millerti.me> | 2022-11-11 15:42:59 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-11-11 15:42:59 -0800 |
commit | bdf25f4808446d5edcad229492ec1a34d18656b2 (patch) | |
tree | ce38b9bf233318181d77e2c980cc86054cf7fe07 /packages/server/src/helpers/decodeClientDataJSON.ts | |
parent | d297921b5dfc410d2807a9196cc86a6b36fa1605 (diff) |
Replace use of base64url dep in clientDataJSON
Diffstat (limited to 'packages/server/src/helpers/decodeClientDataJSON.ts')
-rw-r--r-- | packages/server/src/helpers/decodeClientDataJSON.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts index b3094db..fff6344 100644 --- a/packages/server/src/helpers/decodeClientDataJSON.ts +++ b/packages/server/src/helpers/decodeClientDataJSON.ts @@ -1,10 +1,10 @@ -import base64url from 'base64url'; +import * as base64url from "./base64url"; /** * Decode an authenticator's base64url-encoded clientDataJSON to JSON */ export function decodeClientDataJSON(data: string): ClientDataJSON { - const toString = base64url.decode(data); + const toString = base64url.toString(data); const clientData: ClientDataJSON = JSON.parse(toString); return clientData; |