Merge accounts, and account deletion that works
If you ended up with two accounts — for example one from a phone number and one from a GitHub sign-in — you can now merge them into the account you are signed in to. Deleting an account now works and removes all of its data.
Added
- Merge accounts from your account security settings. Prove that the other account is yours with a code sent to its phone number or email, or by signing in with its Google, GitHub or Apple account. You then see a summary of the other account and confirm.
- When merging, the other account's data — boards, files, images, scripts, translation and document-parsing tasks, linked sign-in methods and more — moves into your current account. Your current phone number, email and password stay as they are; any of these your current account lacks are taken over from the other account. The other account is then deleted and signed out on every device.
- If the other account uses two-factor authentication, you also enter its authenticator code or a recovery code when confirming. A wrong code ends that attempt; prove the other account again to retry. If only the other account had two-factor authentication, it stays switched on for your merged account.
- API:
POST /api/v1/user/merge/verify,POST /api/v1/auth/:provider/merge-url,GETandDELETE /api/v1/user/merge/pending,POST /api/v1/user/merge/confirm. All except thependingendpoints require the same identity check as other sign-in changes (X-Reauth-Token).
Fixed
- Deleting your account (
DELETE /api/v1/user/account) failed every time. It now works: all of your sessions are signed out, and your data and uploaded files are removed. A confirmation email is sent to your verified address. Translations and document-parsing jobs that are still running are stopped and their results removed, and anything saved by a request still in progress at that moment is cleaned up afterwards. If the deletion cannot complete, nothing changes and you stay signed in.
Security
- What you need to do (API clients):
DELETE /api/v1/user/accountnow requires the identity check (403,"code": "reauth_required", unless you signed in within the last 10 minutes), like other sign-in changes. - If other people still use an OAuth app you developed, your account cannot be deleted until you delete that app yourself (
409,"code": "oauth_apps_in_use", listing the apps). Deleting your account never silently ends other people's sign-in to your apps. - A sign-in or token refresh that was in progress at the moment of deletion does not produce a working session for the deleted account, and an administrator editing the account at that moment does not bring it back.
- Your files are removed even if your connection drops right after you confirm. If file storage is briefly unavailable, removal is retried automatically for about a day. Results of translations or document-parsing jobs that were still running are checked for once more a day later.
- Merging accounts gets the same protection: the merged-away account is recorded, its discarded files are queued, and anything still saved for it moments later is moved into your account.
- Deleting an account only removes profile pictures that account uploaded itself.
- Downloading or deleting a translation or document-parsing result only ever touches that task's own result file. Uploaders are recorded from now on; existing pictures are attributed to the one account that uses them.
- Mail log entries addressed to your email are deleted with the account. The deletion record kept for administrators (180 days) now also notes which session asked for it and how the identity check was passed.
- A sign-in that was in progress when the account was deleted is answered with
401and"code": "account_not_found". Approving an OAuth app at the same moment its developer deletes their account either fails (400) or makes the deletion wait for it and then refuse; it never reports success and then loses your approval. - If the server cannot tell which of your background jobs are still running, the deletion is refused (
"code": "delete_failed") and nothing changes; try again later. - If you held a shared Riot account, deleting your account hands it back so its password can be changed; the access history is kept for the administrators.
- Deleting your account only removes files that belong to you: a profile picture link pointing at someone else's file is never followed.
- An account that is the only administrator cannot be deleted (
"code": "last_admin"); administrator accounts cannot be merged into another account. - Accounts on which both sides have a different account on the same sign-in provider cannot be merged until one is unlinked (
"code": "merge_conflict"). - An account an administrator has disabled cannot be merged, in either direction (
403,"code": "merge_account_disabled"). - After a merge, apps that held a sign-in token for the merged-away account must ask you to sign in again; your earlier consent to them is kept.