Categories
android jwt rest wordpress

Integrating WordPress Authorization and Sign in with Android

I am trying to build a native Android app for the WordPress site. I am making use of WP REST API v2 (https://wordpress.org/plugins/rest-api/) to fetch the posts and other required attributes. I require authenticating the user, for which i have used JWT Authentication for WP REST API (https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
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": "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.