feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
20
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeClientDataJSON.js
generated
vendored
Normal file
20
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeClientDataJSON.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"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,
|
||||
};
|
||||
Reference in New Issue
Block a user