Open Sjimooon opened 4 months ago
Hmm. That would make sense. Are you thinking of an SQL server process?
I was just thinking of making a background thread on the API, that would send a delete query to the database once in a while. It could be nice to have the database do it by itself, but I don't know how to make it.
TBH I don't know either, only that it's possible 🤔 Let's go with the simplest method to achieve the behavior.
Currently refresh tokens are not deleted from the database. We could use a background service to remove records when the stored expiration has been reached.