- Strapi Version: 3.6.8
- Operating System: Ubuntu 20.04
- Database: MongoDB
- Node Version: 14.17.6
- NPM Version: 6.14.15
- Yarn Version: 1.22.5
I have develop a plugin to send activation links to the authors that will collaborate in adding new content to the web app. I have created a controller and I also have added the permissions to the plugin to be only shown to super admin.
Now I want to protect the post call that I make in react file (inside the plugin), with super admin authentication. I have tried to add policies in routes.json and create a token collection and relate it to super admin collection, following the instructions in the docs (API Tokens - Strapi Developer Documentation) but neither them work.
How can I make API calls with super admin authentication, As far as I know is only possible with authenticated users, but I would like to use super admin.
Thank you very much in advance.