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