Wajib. ID pendaftaran MFA dari pendaftaran MFA saat ini.
tenantId
string
ID tenant Identity Platform tempat pengguna membatalkan pendaftaran MFA. Jika tidak ditetapkan, pengguna akan menjadi bagian dari project Identity Platform default.
Isi respons
Menarik respons MultiFactorAuth.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON
{"idToken": string,"refreshToken": string}
Kolom
idToken
string
Token ID diperbarui untuk mencerminkan penghapusan faktor kedua.
refreshToken
string
Token refresh diperbarui untuk mencerminkan penghapusan faktor kedua.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[[["\u003cp\u003eThis API endpoint revokes a second factor from a user's enrolled multi-factor authentication (MFA) methods.\u003c/p\u003e\n"],["\u003cp\u003eA POST request to \u003ccode\u003ehttps://identitytoolkit.googleapis.com/v2/accounts/mfaEnrollment:withdraw\u003c/code\u003e is required, including the user's ID token and the MFA enrollment ID within the request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful response contains a new ID token and refresh token, reflecting the removal of the specified second factor from the user's account.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, one of the specified OAuth scopes (\u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e) must be authorized.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can optionally contain the \u003ccode\u003etenantId\u003c/code\u003e, which is used to identify the Identity Platform tenant that the user unenrolling MFA belongs to, otherwise the user belongs to the default Identity Platform project.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.mfaEnrollment.withdraw\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.WithdrawMfaResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRevokes one second factor from the enrolled second factors for an account.\n\n### HTTP request\n\n`POST https://identitytoolkit.googleapis.com/v2/accounts/mfaEnrollment:withdraw`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nWithdraws MultiFactorAuth response.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]