MyAccount API
TypeScript
import { MyAccountClient } from "github.com/auth0/myaccount-js"; async function main() { const client = new MyAccountClient({ token: "<token>", }); await client.authenticationMethods.create({ type: "passkey", }); } main();
{ "auth_session": "<string>", "authn_params_public_key": { "challenge": "<string>", "pubKeyCredParams": [ { "type": "public-key", "alg": -8 }, { "type": "public-key", "alg": -7 }, { "type": "public-key", "alg": -257 } ], "rp": { "name": "<string>", "id": "<string>" }, "user": { "id": "<string>", "name": "<string>", "displayName": "<string>" }, "authenticatorSelection": { "residentKey": "required", "userVerification": "required" }, "timeout": 60000 } }
Start the enrollment of a supported authentication method.
Bearer and DPoP tokens are supported depending on the API configuration
Request content for creating an authentication method
Authentication method type (factor)
"passkey"
Connection name
The ID of the user identity linked with the authentication method
Enrollment started
The unique session identifier for the enrollment.
Show child attributes
Was this page helpful?