Files
NapCatQQ/.pnpm-store/v3/files/02/dcae651f13f477c535b173fd575a2327d01563f426770295afb91a9b20dc1a9a3e9e38fc4662fc7ebff01c407836542b7681c9d78d32c292590128de8daed8
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
716 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._decodeClientDataJSONInternals = void 0;
exports.decodeClientDataJSON = decodeClientDataJSON;
const index_js_1 = require("./iso/index.js");
/**
* Decode an authenticator's base64url-encoded clientDataJSON to JSON
*/
function decodeClientDataJSON(data) {
const toString = index_js_1.isoBase64URL.toUTF8String(data);
const clientData = JSON.parse(toString);
return exports._decodeClientDataJSONInternals.stubThis(clientData);
}
/**
* Make it possible to stub the return value during testing
* @ignore Don't include this in docs output
*/
exports._decodeClientDataJSONInternals = {
stubThis: (value) => value,
};