Files
NapCatQQ/.pnpm-store/v3/files/ab/30033f14e9d7dd83cb478b83c92c30dfc9e28ed8c37eaba1e7f4bed109cefad3ecc38541cabbfb40d51cf25d8661fcf3b24d82904068b40d757939618481c1
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

34 lines
1.1 KiB
Plaintext

import { type AuthenticationExtensionsAuthenticatorOutputs } from './decodeAuthenticatorExtensions.js';
import type { Uint8Array_ } from '../types/index.js';
/**
* Make sense of the authData buffer contained in an Attestation
*/
export declare function parseAuthenticatorData(authData: Uint8Array_): ParsedAuthenticatorData;
export type ParsedAuthenticatorData = {
rpIdHash: Uint8Array_;
flagsBuf: Uint8Array_;
flags: {
up: boolean;
uv: boolean;
be: boolean;
bs: boolean;
at: boolean;
ed: boolean;
flagsInt: number;
};
counter: number;
counterBuf: Uint8Array_;
aaguid?: Uint8Array_;
credentialID?: Uint8Array_;
credentialPublicKey?: Uint8Array_;
extensionsData?: AuthenticationExtensionsAuthenticatorOutputs;
extensionsDataBuffer?: Uint8Array_;
};
/**
* Make it possible to stub the return value during testing
* @ignore Don't include this in docs output
*/
export declare const _parseAuthenticatorDataInternals: {
stubThis: (value: ParsedAuthenticatorData) => ParsedAuthenticatorData;
};
//# sourceMappingURL=parseAuthenticatorData.d.ts.map