I have a custom credentials provider and custom session object. The credentials OnAuthenticatedAsync
is loading some additional information about the session and then calling base but I’m noticing the session is not persisted on future calls, I’m assuming because the JWT Token is stateless. What is the best route to be able to pull up and populate this custom session info?
Store it in cache manually and retrieve it in the JWT’s PopulateSessionFilter ?
I am trying to avoid hitting the db everytime there is a jwt auth token session for the same tokens as the session only needs to be loaded once (a day per recycle whatever).