by jholman · 11y ago · 0 comments
The question is not how to make links that expire after a time, the question is how to make links that expire after a fixed number of uses (e.g. one use).
Suppose your link expires in 30 minutes (or any other time). What stops me from using that link 30 times, once per minute?
0. https://news.ycombinator.com/item?id=9055749
1. https://github.com/django/django/blob/master/django/contrib/...
It's still not clear to me, however, how to generalize this technique to create limited-use links that are not necessarily for resetting passwords.