1 export interface PublicKeyCredentialUserEntitySerialized extends Omit<PublicKeyCredentialUserEntity, 'id'> {
5 export interface PublicKeyCredentialDescriptorSerialized extends Omit<PublicKeyCredentialDescriptor, 'id'> {
9 export interface PublicKeyCredentialCreationOptionsSerialized
10 extends Omit<PublicKeyCredentialCreationOptions, 'challenge' | 'user' | 'excludeCredentials'> {
12 user: PublicKeyCredentialUserEntitySerialized;
13 excludeCredentials?: PublicKeyCredentialDescriptorSerialized[];
16 export interface RegistrationOptions {
17 publicKey: PublicKeyCredentialCreationOptionsSerialized;
20 export interface PublicKeyCredentialRequestOptionsSerialized
21 extends Omit<PublicKeyCredentialRequestOptions, 'challenge' | 'allowCredentials'> {
23 allowCredentials: PublicKeyCredentialDescriptorSerialized[];
26 export interface AuthenticationOptions {
27 publicKey: PublicKeyCredentialRequestOptionsSerialized;
30 export enum AttestationFormat {
32 AndroidKey = 'android-key',
33 AndroidSafetyNet = 'android-safetynet',
40 export interface RegisteredKey {
41 AttestationFormat: AttestationFormat;
42 CredentialID: number[];
46 export interface RegisterCredentials {
47 RegisteredKeys: RegisteredKey[];
48 RegistrationOptions: RegistrationOptions;
49 AttestationFormats: AttestationFormat[];
52 export interface RegisterCredentialsPayload {
53 RegistrationOptions: RegistrationOptions;
55 AttestationObject: string;
60 export interface AuthenticationCredentialsPayload {
61 AuthenticationOptions: AuthenticationOptions;
63 AuthenticatorData: string;
65 CredentialID: number[];