System Information
- Strapi Version: 4.6.1
- Operating System: macOS 13.1
- Database: MySQL 8
- Node Version: 18.12.1
- NPM Version: 8.19.2
- Yarn Version: N/A
I have implemented a custom JWT by overriding the “callback” method in the file src/extensions/users-permissions/strapi-server.js
The JWT now does not contain just the id parameter, but also contains a few other parameters, which are needed for my application.
To validate all API calls, I need to override the authenticate
method provided in this file https://github.com/strapi/strapi/blob/main/packages/plugins/users-permissions/server/strategies/users-permissions.js
How do I override this method? I thought placing some code in src/extensions/users-permissions/strapi-server.js
should work, but I am not able to make it work. Any suggestions on how to do this?