Title: 2FA over JSON-API
Last modified: June 18, 2020

---

# 2FA over JSON-API

 *  Resolved [greywood](https://wordpress.org/support/users/greywood/)
 * (@greywood)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/2fa-over-json-api/)
 * Hello!
 * I am using JSON-API to login to my website but I am having trouble figuring out
   how to supply the 2FA credential. I noticed that when logging in normally the
   Two Factor Authentication plugin provides a field called ‘two_factor_code’. I
   tried adding that to the $creds for wp_signon but that doesn’t work.
 * What am I missing?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/2fa-over-json-api/#post-13029776)
 * Hi,
 * I don’t know what it means to login over JSON-API. Is this a custom thing you’ve
   created?
 * David

Viewing 1 replies (of 1 total)

The topic ‘2FA over JSON-API’ is closed to new replies.

 * ![](https://ps.w.org/two-factor-authentication/assets/icon-256x256.png?rev=1116775)
 * [Two Factor Authentication](https://wordpress.org/plugins/two-factor-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor-authentication/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/2fa-over-json-api/#post-13029776)
 * Status: resolved