System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
Hi All,
I am using Strapi as my backend server and GraphQL plugin for my APIs. I have recently discovered this issue when I am trying to fetch user detail.
I use GraphQL query to fetch a single user (findOne) with user id, this controller is protected and a user must pass valid JWT to get the details. Below is the query:
query getUser($id: ID!) {
user(id:$id){
id
username
email
phone
provider
website_link
twitter_link
linkedin_link
github_link
youtube_link
bio
image{
url
formats
}
}
}
The above query works fine if I open the route to the public role and do not pass any auth header, but if I pass auth header with JWT token, I get below error:
strapi.plugins.users-permissions.config.policies[permission.policy] is not a function
The behaviour is same in GraphQL playground as well. Any help if much appreciated.