Skip to main content
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"
}

Authorizations

Authorization
string
header
required

Bearer and DPoP tokens are supported depending on the API configuration

Path Parameters

authentication_method_id
string
required

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.

Body

application/json

Request content for verifying an authentication method

auth_session
string
required

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

authn_response
object
required

Response

Authentication method verified

id
string
required

The unique identifier of the authentication method

created_at
string<date-time>
required

The date and time when the authentication method was created

usage
enum<string>[]
required

Primary and/or secondary factor

Usage type for authentication factors

Available options:
primary,
secondary
type
string
default:password
required

Authentication method type (factor)

Allowed value: "password"
identity_user_id
string
required

The ID of the user identity linked with the authentication method

last_password_reset
string<date-time>

The date of the last password reset