Urgent.News

What's breaking now, across thousands of outlets.

Tech

Self-destructing secrets: Expiration by TTL and automatic purge.

Secretos autodestructibles: Expiración por TTL y purga automática. Los tokens temporales de autenticación no deberían vivir para siempre en tu base de datos. wauth incluye soporte nativo de TTL que purga automáticamente los secretos caducados sin necesidad de tareas cron. Esta es la implementación exacta para producción de Time-To-Live (TTL) Automatic Expiration : import time from wauth import…

Translated from Spanish Read in Spanish

The library wauth has native support for time-to-live (TTL) for temporary authentication tokens. This allows for automatic expiration and purging of expired secrets without the need for manual tasks. For example, a token can be set to expire in 5 seconds using `auth.set()` with `ttl=5`. After expiration, the token is automatically removed and returns `None` when queried. This feature eliminates issues such as obsolete credentials and expired tokens remaining in databases.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

S3 Is the Future, S3 Is the Past

My comment on S3 Is the Future, S3 Is the Past — Hacker News. One thing I find notable about S3 today is that, while it used to drop in price reasonably often, there hasn't been a price drop in a full…

More from Sunday 27 September →