mfaJson: (
key: any,
) => {
activated: boolean;
appPasswords: any;
backupCodes:
| {
generatedAt: number;
hashed?: undefined;
lastUsedAt: number;
legacy?: undefined;
present: boolean;
remaining: number;
sealed: boolean;
total: number;
usable: boolean;
used: number;
why: any;
}
| {
generatedAt: any;
hashed: boolean;
lastUsedAt: any;
legacy: boolean;
present: boolean;
remaining: any;
sealed: any;
total: any;
usable: boolean;
used: number;
why: string;
};
disabled: boolean;
keys: {
aaguid: any;
algorithm: {
coseAlg: number;
insecure: boolean;
lane: string;
name: string;
postQuantum: boolean;
text: string;
};
attestation: any;
attestationAlgorithms: any;
backupEligible: any;
backupState: any;
credentialId: any;
deviceSerial: any;
discoverable: any;
enrolledAt: any;
group: "device"
| "security-key";
label: any;
lane: string;
lastUsedAt: any;
name: string;
possiblyReplaced: { at: number; by: string };
postQuantumRefused: any;
provider: string;
signCount: any;
transports: any;
withoutUsername: { ready: boolean; text: string };
}[];
mfaKeys: number;
mfaRequired: boolean;
mfaRequirement: | {
byAdministrator: boolean;
byRealm: boolean;
byUser: boolean;
exemptServiceAccount: boolean;
offered: boolean;
required: boolean;
}
| { byRealm: false; byUser: false; required: false };
password: boolean;
passwordChangeRequired: boolean;
passwordOnlyDoors: {
accepted: string[];
passwordAloneDoors: string[];
refused: string[];
secondFactor: boolean;
sentence: string;
};
passwordResetLink: { expired: boolean; expires: any };
policy: {
backupCodesCount: number;
backupCodesEnabled: boolean;
maxKeysPerPerson: any;
mfaAllowed: boolean;
primaryAllowed: boolean;
totpEnabled: boolean;
webauthnEnabled: boolean;
};
primaryKeys: number;
secondFactor: string;
totp: boolean;
totpDetail: {
algorithm: any;
digits: any;
enrolledAt: any;
lastUsedAt: any;
period: any;
sealed: boolean;
unusable: boolean;
why: any;
};
totpUsable: boolean;
usable: boolean;
} = ...
Type Declaration
-
- (
key: any,
): {
activated: boolean;
appPasswords: any;
backupCodes:
| {
generatedAt: number;
hashed?: undefined;
lastUsedAt: number;
legacy?: undefined;
present: boolean;
remaining: number;
sealed: boolean;
total: number;
usable: boolean;
used: number;
why: any;
}
| {
generatedAt: any;
hashed: boolean;
lastUsedAt: any;
legacy: boolean;
present: boolean;
remaining: any;
sealed: any;
total: any;
usable: boolean;
used: number;
why: string;
};
disabled: boolean;
keys: {
aaguid: any;
algorithm: {
coseAlg: number;
insecure: boolean;
lane: string;
name: string;
postQuantum: boolean;
text: string;
};
attestation: any;
attestationAlgorithms: any;
backupEligible: any;
backupState: any;
credentialId: any;
deviceSerial: any;
discoverable: any;
enrolledAt: any;
group: "device"
| "security-key";
label: any;
lane: string;
lastUsedAt: any;
name: string;
possiblyReplaced: { at: number; by: string };
postQuantumRefused: any;
provider: string;
signCount: any;
transports: any;
withoutUsername: { ready: boolean; text: string };
}[];
mfaKeys: number;
mfaRequired: boolean;
mfaRequirement: | {
byAdministrator: boolean;
byRealm: boolean;
byUser: boolean;
exemptServiceAccount: boolean;
offered: boolean;
required: boolean;
}
| { byRealm: false; byUser: false; required: false };
password: boolean;
passwordChangeRequired: boolean;
passwordOnlyDoors: {
accepted: string[];
passwordAloneDoors: string[];
refused: string[];
secondFactor: boolean;
sentence: string;
};
passwordResetLink: { expired: boolean; expires: any };
policy: {
backupCodesCount: number;
backupCodesEnabled: boolean;
maxKeysPerPerson: any;
mfaAllowed: boolean;
primaryAllowed: boolean;
totpEnabled: boolean;
webauthnEnabled: boolean;
};
primaryKeys: number;
secondFactor: string;
totp: boolean;
totpDetail: {
algorithm: any;
digits: any;
enrolledAt: any;
lastUsedAt: any;
period: any;
sealed: boolean;
unusable: boolean;
why: any;
};
totpUsable: boolean;
usable: boolean;
}
-
Returns {
activated: boolean;
appPasswords: any;
backupCodes:
| {
generatedAt: number;
hashed?: undefined;
lastUsedAt: number;
legacy?: undefined;
present: boolean;
remaining: number;
sealed: boolean;
total: number;
usable: boolean;
used: number;
why: any;
}
| {
generatedAt: any;
hashed: boolean;
lastUsedAt: any;
legacy: boolean;
present: boolean;
remaining: any;
sealed: any;
total: any;
usable: boolean;
used: number;
why: string;
};
disabled: boolean;
keys: {
aaguid: any;
algorithm: {
coseAlg: number;
insecure: boolean;
lane: string;
name: string;
postQuantum: boolean;
text: string;
};
attestation: any;
attestationAlgorithms: any;
backupEligible: any;
backupState: any;
credentialId: any;
deviceSerial: any;
discoverable: any;
enrolledAt: any;
group: "device"
| "security-key";
label: any;
lane: string;
lastUsedAt: any;
name: string;
possiblyReplaced: { at: number; by: string };
postQuantumRefused: any;
provider: string;
signCount: any;
transports: any;
withoutUsername: { ready: boolean; text: string };
}[];
mfaKeys: number;
mfaRequired: boolean;
mfaRequirement: | {
byAdministrator: boolean;
byRealm: boolean;
byUser: boolean;
exemptServiceAccount: boolean;
offered: boolean;
required: boolean;
}
| { byRealm: false; byUser: false; required: false };
password: boolean;
passwordChangeRequired: boolean;
passwordOnlyDoors: {
accepted: string[];
passwordAloneDoors: string[];
refused: string[];
secondFactor: boolean;
sentence: string;
};
passwordResetLink: { expired: boolean; expires: any };
policy: {
backupCodesCount: number;
backupCodesEnabled: boolean;
maxKeysPerPerson: any;
mfaAllowed: boolean;
primaryAllowed: boolean;
totpEnabled: boolean;
webauthnEnabled: boolean;
};
primaryKeys: number;
secondFactor: string;
totp: boolean;
totpDetail: {
algorithm: any;
digits: any;
enrolledAt: any;
lastUsedAt: any;
period: any;
sealed: boolean;
unusable: boolean;
why: any;
};
totpUsable: boolean;
usable: boolean;
}
the description
Describes a person's second factors; no codes and no public keys.