メインコンテンツへスキップ
POST
https://{tenantDomain}/api/v2
/
users
/
{id}
/
recovery-code-regeneration
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Users.RegenerateRecoveryCode(
        context.TODO(),
        "id",
    )
}
{
  "recovery_code": "<string>"
}

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

多要素認証の回復コードを再生成するユーザーのID。

レスポンス

新しい回復コードが正常に生成されました。

recovery_code
string

新しいアカウントのリカバリーコード。