feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
20
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.js
generated
vendored
Normal file
20
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports._decodeAttestationObjectInternals = void 0;
|
||||
exports.decodeAttestationObject = decodeAttestationObject;
|
||||
const index_js_1 = require("./iso/index.js");
|
||||
/**
|
||||
* Convert an AttestationObject buffer to a proper object
|
||||
*
|
||||
* @param base64AttestationObject Attestation Object buffer
|
||||
*/
|
||||
function decodeAttestationObject(attestationObject) {
|
||||
return exports._decodeAttestationObjectInternals.stubThis(index_js_1.isoCBOR.decodeFirst(attestationObject));
|
||||
}
|
||||
/**
|
||||
* Make it possible to stub the return value during testing
|
||||
* @ignore Don't include this in docs output
|
||||
*/
|
||||
exports._decodeAttestationObjectInternals = {
|
||||
stubThis: (value) => value,
|
||||
};
|
||||
Reference in New Issue
Block a user