Generating JWT token for a user using email id

System Information
  • Strapi Version: 4.2.2
  • Operating System: Linux Mint
  • Database: Mysql 8.0
  • Node Version: 14.19.3
  • NPM Version: 8.13.2
  • Yarn Version:

Hi, I was trying to generate a jwt token for a user using a custom api without calling “auth/local” endpoint. Is there any way to generate a jwt token using only email id of the user? And this token should validate the user for the further API calls to the protected resources. Thanks in advance.