# How to add MFA for admin logins?

**URL:** <https://forum.djangoproject.com/t/how-to-add-mfa-for-admin-logins/33218>\
**Category:** The Admin\
**Created:** [July 23, 2024, 4:08pm UTC](https://forum.djangoproject.com/t/how-to-add-mfa-for-admin-logins/33218 "2024-07-23T16:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kushaldas](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kushaldas/32/22752_2.png) [@kushaldas](https://forum.djangoproject.com/u/kushaldas)\
**Post date:** [July 23, 2024, 4:08pm UTC](https://forum.djangoproject.com/t/how-to-add-mfa-for-admin-logins/33218/1 "2024-07-23T16:08:33Z")

</div>

How can I enable MFA (TOTP and FIDO2 support) for the `admin` login?

---

<div class="post-metadata">

**Author:** ![kushaldas](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kushaldas/32/22752_2.png) [@kushaldas](https://forum.djangoproject.com/u/kushaldas)\
**Post date:** [July 23, 2024, 8:28pm UTC](https://forum.djangoproject.com/t/how-to-add-mfa-for-admin-logins/33218/2 "2024-07-23T20:28:53Z")

</div>

Managed to have both `TOTP` and `FIDO2` working using [GitHub - peppelinux/django-mfa3 at mfa\_session](https://github.com/peppelinux/django-mfa3/tree/mfa_session)

Had to copy [cbor.js](https://www.npmjs.com/package/cbor-js) to get `FIDO2` working as suggested in the README.
