addPasskey
The addPasskey
method is used to add a passkey as an auth method to an already logged in user.
Usage
example.ts
import { signer } from "./signer";
await signer.addPasskey();
Returns
Promise<string[]>
-- on success returns an array of credential ids
Parameters
params?: CredentialCreationOptions
-- overrides for the WebAuthn credential creation options. For more info on the CredentialCreationOptions
interface, see here.