Passer au contenu principal
POST
/
authentication-methods
/
{authentication_method_id}
/
verify
TypeScript
import { MyAccountClient } from "github.com/auth0/myaccount-js";

async function main() {
    const client = new MyAccountClient({
        token: "<token>",
    });
    await client.authenticationMethods.verify("authentication_method_id", {
        authSession: "auth_session",
        authnResponse: {
            id: "id",
            rawId: "rawId",
            response: {
                attestationObject: "attestationObject",
                clientDataJson: "clientDataJSON",
            },
            type: "public-key",
        },
    });
}
main();
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "usage": [
    "primary"
  ],
  "type": "password",
  "identity_user_id": "<string>",
  "last_password_reset": "2023-11-07T05:31:56Z"
}

Release Lifecycle

Beta

Scopes

Scopes define permissions and access levels for API requests and authentication tokens.
create:me:authentication_methods

Autorisations

Authorization
string
header
requis

Bearer and DPoP tokens are supported depending on the API configuration

Paramètres de chemin

authentication_method_id
string
requis

Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications.

Corps

application/json

Request content for verifying an authentication method

auth_session
string
requis

The unique session identifier for the enrollment as returned by POST /authentication-methods

authn_response
object
requis

Réponse

Authentication method verified

id
string
requis

The unique identifier of the authentication method

created_at
string<date-time>
requis

The date and time when the authentication method was created

usage
enum<string>[]
requis

Primary and/or secondary factor

Usage type for authentication factors

Options disponibles:
primary,
secondary
type
string
défaut:password
requis

Authentication method type (factor)

Allowed value: "password"
identity_user_id
string
requis

The ID of the user identity linked with the authentication method

last_password_reset
string<date-time>

The date of the last password reset