Optimize-The-Drive / optimize-the-drive

0 stars 0 forks source link

Add postgres function to delete all expired jwts #59

Open natedunn2230 opened 5 months ago

natedunn2230 commented 5 months ago

Currently after a jwt is invalidated, it is stored in the db. We don't need to track them anymore after their expiration date, so write a postgres function to clear them out. Can possible call a cron job to invoke this function every so often (daily, weekly, etc.).