Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn’t this exhaust the server resources with storing all the tokens?

Not really --- only 8 bytes per token and they can be discarded on successful login. Tokens older than X minutes or with more than X attempts can be discarded/rejected too.

How many users are legitimately attempting to log in to your server at the same time?

If you worried about this, encode the current time into the token using a hashing/encryption/checksum method of your choice. This way, everything needed to validate the attempt is submitted along with the credentials.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: