Title: Build React Native app for wordpress website using JWT-Token REST API
Last modified: May 19, 2022

---

# Build React Native app for wordpress website using JWT-Token REST API

 *  [victorjnhero](https://wordpress.org/support/users/victorjnhero/)
 * (@victorjnhero)
 * [4 years ago](https://wordpress.org/support/topic/build-react-native-app-for-wordpress-website-using-jwt-token-rest-api/)
 * My client has wordpress website and he needs to built an react native app using
   REST API. WordPress website used by many users. I tried to login using admin 
   credentials and I got jwt token back from “/wp-json/api/v1/token” But same url
   returns below error when a customer/User tried to login
 * {
    “status”: “error”, “error”: “INVALID_CREDENTIALS”, “code”: “400”, “error_description”:“
   Invalid username or password.” }
 * Does jwt-token only works for admin user only?
    How can all the users of website
   can login to app as they login to wordpress website?
 * Appreciate any response on this.

The topic ‘Build React Native app for wordpress website using JWT-Token REST API’
is closed to new replies.

 * ![](https://ps.w.org/jwt-authentication-for-wp-rest-api/assets/icon-256x256.jpg?
   rev=3372068)
 * [JWT Authentication for WP REST API](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jwt-authentication-for-wp-rest-api/reviews/)

## Tags

 * [jwt](https://wordpress.org/support/topic-tag/jwt/)

 * 0 replies
 * 1 participant
 * Last reply from: [victorjnhero](https://wordpress.org/support/users/victorjnhero/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/build-react-native-app-for-wordpress-website-using-jwt-token-rest-api/)
 * Status: not resolved