feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
34
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.d.ts
generated
vendored
Normal file
34
api.hyungi.net/node_modules/@simplewebauthn/server/script/helpers/decodeAttestationObject.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Convert an AttestationObject buffer to a proper object
|
||||
*
|
||||
* @param base64AttestationObject Attestation Object buffer
|
||||
*/
|
||||
export declare function decodeAttestationObject(attestationObject: Uint8Array): AttestationObject;
|
||||
export type AttestationFormat = 'fido-u2f' | 'packed' | 'android-safetynet' | 'android-key' | 'tpm' | 'apple' | 'none';
|
||||
export type AttestationObject = {
|
||||
get(key: 'fmt'): AttestationFormat;
|
||||
get(key: 'attStmt'): AttestationStatement;
|
||||
get(key: 'authData'): Uint8Array;
|
||||
};
|
||||
/**
|
||||
* `AttestationStatement` will be an instance of `Map`, but these keys help make finite the list of
|
||||
* possible values within it.
|
||||
*/
|
||||
export type AttestationStatement = {
|
||||
get(key: 'sig'): Uint8Array | undefined;
|
||||
get(key: 'x5c'): Uint8Array[] | undefined;
|
||||
get(key: 'response'): Uint8Array | undefined;
|
||||
get(key: 'alg'): number | undefined;
|
||||
get(key: 'ver'): string | undefined;
|
||||
get(key: 'certInfo'): Uint8Array | undefined;
|
||||
get(key: 'pubArea'): Uint8Array | undefined;
|
||||
readonly size: number;
|
||||
};
|
||||
/**
|
||||
* Make it possible to stub the return value during testing
|
||||
* @ignore Don't include this in docs output
|
||||
*/
|
||||
export declare const _decodeAttestationObjectInternals: {
|
||||
stubThis: (value: AttestationObject) => AttestationObject;
|
||||
};
|
||||
//# sourceMappingURL=decodeAttestationObject.d.ts.map
|
||||
Reference in New Issue
Block a user