for api use can generate one random key for each user and store into database when send request you can validate token of particular user.
Apr 3, 2019
2
Level 1
Using an API key alongside JWT authentication
Using JWT in our API that services a mobile app, where users login, system retrieves the JWT token and stores in App for future requests for that user.
However, we would also like to add an API key in addition to this JWT token call so we only service requests coming from a valid key.
What is the recommended approach/library/package to use alongside the JWT middleware?
Please or to participate in this conversation.