With sessions you can easily monitor and track how many times a user tries and fails to log in, and when the number of failure is higher than a certain number, you just kick it request off, in order to prevent a hacker to query the database too many times and to gess the credentials. Is there any strategy available to monitor user log-in attempts using pure Jason web token approach?
The only solution I managed to find so far is to use session for the log-in page and when the user is logged in I just use JWT for each request. Because user log-in once in few weeks, thanks to jwt, the server overload should be small, I presume. What do you think about this strategy?