Integrating Wordpress Authorization and Sign in with Android

admin

Administrator
Staff member
I am trying to build a native Android app for the Wordpress site. I am making use of WP REST API v2 (<a href="https://wordpress.org/plugins/rest-api/" rel="nofollow noreferrer">https://wordpress.org/plugins/rest-api/</a>) to fetch the posts and other required attributes. I require authenticating the user, for which i have used JWT Authentication for WP REST API (<a href="https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/" rel="nofollow noreferrer">https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/</a>)
API to Generate and Validate token works fine. However when i try to pass the generated token in the header i keep getting the below error.

Code:
{
    "code": "jwt_auth_bad_config",
    "message": "JWT is not configurated properly, please contact the admin",
    "data": {
        "status": 403
    }
}

Any suggestions as to what is going wrong? Requesting help to get this thing running.