My Account 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"
Name of the database connection
1 - 128
^[a-zA-Z0-9-]+$
Identity provider user ID
1 - 255
^\S+$
Enrollment started
The unique session identifier for the enrollment.
Show child attributes
Was this page helpful?