Title: Issue in REST API Authentication
Last modified: April 15, 2019

---

# Issue in REST API Authentication

 *  Resolved [Sayan Naskar](https://wordpress.org/support/users/sayannaskar/)
 * (@sayannaskar)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/)
 * Hello,
    When using the plugin and turning on Captcha in the login form and doing
   JWT authentication through Rest API it is showing the error that Please solve
   the captcha correctly. Any ideas about fixing it?
 * Thank You.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Sayan Naskar](https://wordpress.org/support/users/sayannaskar/)
 * (@sayannaskar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11429352)
 * Hello, again I was checking the code and found the problem is from the login_verify
   function in the anr-captcha-class.php file. The function is written in the 999
   hook priority. So it is working in the rest API authorization also.
    Can you 
   add a checking at the beginning of the function to check if the call is a rest
   API call or not and if not then continue with further actions? Or just add a 
   do_action at the beginning of the function so that we can implement the required
   condition checking from our plugin. Or if you have any other solutions we will
   love to hear them. 🙂
 * Thank You,
    Sayan. Team WCLovers
 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11437976)
 * You can update to latest version then use `anr_verify_captcha_pre` hook
 *  Thread Starter [Sayan Naskar](https://wordpress.org/support/users/sayannaskar/)
 * (@sayannaskar)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11446160)
 * Hello,
    Thanks for the update.
 *  [Kerrie Redgate](https://wordpress.org/support/users/kerrie-redgate/)
 * (@kerrie-redgate)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11463614)
 * I’ve had to have this plugin deactivated as the last update locked me out of 
   all my websites where I had it on the login page. I have no idea where to put
   this code (as above). Why doesn’t the plugin work anymore? Can you fix it? It
   has been a great plugin.
 *  [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11465725)
 * [@kerrie-redgate](https://wordpress.org/support/users/kerrie-redgate/)
    This 
   topic is for REST API and if you are not login using REST API then this is not
   the issue in your case.
 * This plugin is working. If it is not working in your website please create a 
   new topic in [https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/#new-post](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/#new-post)
   so that we can try to solve your issue.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Issue in REST API Authentication’ is closed to new replies.

 * ![](https://ps.w.org/advanced-nocaptcha-recaptcha/assets/icon-256x256.png?rev
   =2961544)
 * [CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-nocaptcha-recaptcha/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/issue-in-rest-api-authentication/#post-11465725)
 * Status: resolved