miguelgrinberg / microblog-api

A modern (as of 2024) Flask API back end.
MIT License
365 stars 100 forks source link

Token table clean up #13

Closed dhernandezgt closed 2 months ago

dhernandezgt commented 1 year ago

After test and use the api, Token table data is increasing. Should the table should overwrite new token?

miguelgrinberg commented 1 year ago

There is a cleanup function for tokens already. See Token.clean() in models.py. This is called here.