How to fetch users form WP REST API? basic auth

HELLO developers!

I want to fetch users from WordPress so that I can get not just author ID, but the author’s name.
I added basic auth as following in frontity.settings.js file:

"name": "@frontity/wp-source",
      "state": {
        "source": {
          "api": "https://test.com/wp-json/",
          "url": "https://test.com",
          "auth":"Basic 16digittestcodewithoutspaces",
          "postsPage": "/blog"
        }
}

However, it is not getting users.

Please help!

This is what I get in frontity.state.source. In the tutorial, it shows as people should get author’s name and details here. However, I get undefined.

image

hello @luisherranz can you please look into this problem? I have been struggling with this problem for a while…
We have a Wordfence plugin, but is there a way to fetch users without disabling Wordfence?