Title: 2FA Rest API
Last modified: December 10, 2022

---

# 2FA Rest API

 *  Resolved [deltahedge](https://wordpress.org/support/users/deltahedge/)
 * (@deltahedge)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/2fa-rest-api/)
 * I am trying to implement JWT for a React application that will be connecting 
   to a client site. However, I see that there is a method being applied in the 
   login class that blocks access when at least one 2FA method is enabled. Is there
   a way to disable this without directly editing the code? Or is there a way to
   simply pass the 2FA code through on the JWT request?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/2fa-rest-api/#post-16280808)
 * Thank you for your message [@deltahedge](https://wordpress.org/support/users/deltahedge/)
 * I’m afraid that at the moment it is not possible to achieve that without changing
   the code, however, we will soon introduce application passwords, so you can still
   log in to an account with 2FA without 2FA.
 * Having said that you can still “work around” this. If you are using a user account
   for some automation and application, can’t you create a dedicated user and not
   enforce any 2FA on that user?
 * I’d like to learn more about your requirements so we can see how to better assist
   you.
 * Looking forward to hearing from you.

Viewing 1 replies (of 1 total)

The topic ‘2FA Rest API’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/2fa-rest-api/#post-16280808)
 * Status: resolved