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": "",
          "url": "",
          "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.


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?