# 2fa security key breaks when migrating to custom domain

**URL:** <https://meta.discourse.org/t/2fa-security-key-breaks-when-migrating-to-custom-domain/155528>\
**Category:** Bug\
**Created:** [June 22, 2020, 8:11am UTC](https://meta.discourse.org/t/2fa-security-key-breaks-when-migrating-to-custom-domain/155528 "2020-06-22T08:11:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![balboah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/balboah/32/184387_2.png) [@balboah](https://meta.discourse.org/u/balboah)\
**Post date:** [June 22, 2020, 8:11am UTC](https://meta.discourse.org/t/2fa-security-key-breaks-when-migrating-to-custom-domain/155528/1 "2020-06-22T08:11:36Z")

</div>

After using the trydiscord domain and then configuring the real custom domain to use, 2fa breaks. I believe fido2 associates domains with the key.

Also another admin can’t disable the key, it becomes “invalid parameters” (same as [Can't turn off 2 factor](https://meta.discourse.org/t/cant-turn-off-2-factor/155513)). Trying to migrate again to the same custom domain will also be denied because “Hostname already exists.”.

My account is then bricked, please advice

---

_[View the full topic](https://meta.discourse.org/t/2fa-security-key-breaks-when-migrating-to-custom-domain/155528)._
