Use this file to discover all available pages before exploring further.
Auth0 のUnlink a User Account(ユーザーアカウントのリンクを解除する)エンドポイント、またはAuth0.jsライブラリーを使用して、ターゲットのユーザーアカウントからIDのリンクを解除して、分離したユーザーアカウントに戻します。このリンク解除プロセスの結果は次のようになります。
function unlinkAccount(secondaryProvider, secondaryUserId) { var primaryUserId = localStorage.getItem('user_id'); var primaryAccessToken = localStorage.getItem('access_token'); // Uses the Access Token of the primary user as a bearer token to identify the account // which will have the account unlinked to, and the user id of the secondary user, to identify // the user that will be unlinked from the primary account. $.ajax({ type: 'DELETE', url: 'https://' + AUTH0_DOMAIN +'/api/v2/users/' + primaryUserId + '/identities/' + secondaryProvider + '/' + secondaryUserId, headers: { 'Authorization': 'Bearer ' + primaryAccessToken } }).then(function(identities){ alert('unlinked!'); showLinkedAccounts(identities); }).fail(function(jqXHR){ alert('Error unlinking Accounts: ' + jqXHR.status + ' ' + jqXHR.responseText); });}