Mike-Mortensen-Portfolio / PubHub_H6_Final

This repository represents the final exam for the Data Technician with Specaility in Programming 2024. Grade recieved: Simon: 12 (A+), Jasmin: 12 (A+), Mike: 12 (A+)
MIT License
2 stars 1 forks source link

Clean up refresh tokens #158

Open Sjimooon opened 4 months ago

Sjimooon commented 4 months ago

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.

ZhakalenDk commented 4 months ago

Hmm. That would make sense. Are you thinking of an SQL server process?

Sjimooon commented 4 months ago

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.

ZhakalenDk commented 4 months ago

TBH I don't know either, only that it's possible 🤔 Let's go with the simplest method to achieve the behavior.