Title: invalid_username error
Last modified: January 12, 2022

---

# invalid_username error

 *  [montag972](https://wordpress.org/support/users/montag972/)
 * (@montag972)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/invalid_username-error/)
 * Hi everyone, this is my first post here.
    I’m trying to protect all endpoints
   but when performing a simple request to get the posts I get the following response
   from wp:
 *     ```
       {
           "code": "invalid_username",
           "message": "<strong>Error</strong>: The username {\"typ\" is not registered on this site. If you are unsure of your username, try your email address instead.",
           "data": null
       }
       ```
   
 * The request header contains:
    Authorization:Bearer tokengoeshere
 * Can anyone help me with this? Thank you!

Viewing 1 replies (of 1 total)

 *  [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * (@earthman100)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/invalid_username-error/#post-15443831)
 * I am getting the same error, trying to access the endpoints:
    /wp-json/wp/v2/
   and /wp-json/wc/v3/customers/
 * was there any resolution you found to this?
 *     ```
       {
           "code": "invalid_username",
           "message": "<strong>Error</strong>: The username <strong>{\"typ\"</strong> is not registered on this site. If you are unsure of your username, try your email address instead.",
           "data": null
       }
       ```
   
 * I am using an auth token provided by the plugin

Viewing 1 replies (of 1 total)

The topic ‘invalid_username error’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Earthman Media](https://wordpress.org/support/users/earthman100/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/invalid_username-error/#post-15443831)
 * Status: not resolved