DEV Community

Discussion on: JWT can fit as an authentication system with a blacklist technique

Collapse
 
ryansgi profile image
Ryan B

One thing that you could do instead of using a cron is to use database triggers; something like:
CREATE TRIGGER delete_blacklist_rows_trigger AFTER SELECT ON blacklist EXECUTE FUNCTION delete_expired_rows();