diff options
author | Matthew Miller <matthew@millerti.me> | 2020-06-05 17:55:58 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-06-05 17:55:58 -0700 |
commit | 506d1a5beb91ad5e65b30e10cb056d74bc49298c (patch) | |
tree | 40feb320b1c0cc2e4464c39d48e2cf8172a700f9 /packages/server/src/helpers/decodeClientDataJSON.ts | |
parent | 1683e99a6e6a33bd6737240ca6bbc8a9d64b798b (diff) |
Replace “base64” with “base64url” in some comments
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 93c6b10..7c09b0d 100644 --- a/packages/server/src/helpers/decodeClientDataJSON.ts +++ b/packages/server/src/helpers/decodeClientDataJSON.ts @@ -1,13 +1,13 @@ import base64url from 'base64url'; /** - * Decode an authenticator's base64-encoded clientDataJSON to JSON + * Decode an authenticator's base64url-encoded clientDataJSON to JSON */ export default function decodeClientDataJSON(data: string): ClientDataJSON { const toString = base64url.decode(data); const clientData: ClientDataJSON = JSON.parse(toString); - // `challenge` will be Base64-encoded here. Decode it for easier comparisons with what is provided + // `challenge` will be Base64URL-encoded here. Decode it for easier comparisons with what is provided // as the expected value clientData.challenge = Buffer.from(clientData.challenge, 'base64').toString('ascii'); |