creationOptions: (
rpId: any,
kind?: any,
) => {
algorithms: any[];
attestation: any;
authenticatorSelection: AuthenticatorSelection;
credProps: boolean;
rp: { id: any; name: string };
timeout: any;
} = ...
Type Declaration
-
- (
rpId: any,
kind?: any,
): {
algorithms: any[];
attestation: any;
authenticatorSelection: AuthenticatorSelection;
credProps: boolean;
rp: { id: any; name: string };
timeout: any;
}
-
Parameters
- rpId: any
Optionalkind: any
Returns {
algorithms: any[];
attestation: any;
authenticatorSelection: AuthenticatorSelection;
credProps: boolean;
rp: { id: any; name: string };
timeout: any;
}
the options: RP, algorithms, attestation, timeout,
authenticator selection and credProps
Builds the registration options the browser receives.
A
kindnarrows the authenticator attachment only while the setting isany, and a platform ceremony prefers a discoverable credential. A policy that demands a trusted statement asks fordirectattestation.