Passer au contenu principal
POST
/
users
/
{id}
/
recovery-code-regeneration
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.users.regenerateRecoveryCode("id");
}
main();
{
  "recovery_code": "<string>"
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

ID of the user to regenerate a multi-factor authentication recovery code for.

Réponse

New recovery code successfully generated.

recovery_code
string

New account recovery code.