---
library: "bootstrap"
slug: "ExpiringToken"
name: "ExpiringToken"
ref: "ExpiringToken#6cce"
hash: "sema:ExpiringToken#mh:SHA-256:6ccee8101ea0c081947b221568ce55d3b727412df9015a4ac8e876dc956efcaf"
type: "Protocols"
layer: "Society"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ExpiringToken"
---

# ExpiringToken

Time-decaying privileges

Society · Protocols

## Mechanism

Access tokens that strictly degrade in capability over time. A fresh key can do everything (Admin). After 1 hour, it degrades to Write-Only. After 2 hours, Read-Only. After 3 hours, Dead. The decay is encoded in the token logic itself. It extends [BearerToken](https://semahash.org/vocabularies/bootstrap/patterns/BearerToken.md) by embedding an immutable expiration timestamp within the signed payload.

## Invariants

- Expired tokens cannot be revived.
- Monotonic [Decay](https://semahash.org/vocabularies/bootstrap/patterns/Decay.md): Capabilities cannot increase over time
- Time-Bound: Token is invalid if CurrentTime > ExpiryTime

## Failure modes

- Clock synchronization issues.

## Where this came from

—

## Builds on

- [BearerToken](https://semahash.org/vocabularies/bootstrap/patterns/BearerToken.md) (references)
- [Decay](https://semahash.org/vocabularies/bootstrap/patterns/Decay.md) (references)

## Used by

- [Powerreturn](https://semahash.org/vocabularies/bootstrap/patterns/Powerreturn.md) (references)

## Related

- [Powerreturn](https://semahash.org/vocabularies/bootstrap/patterns/Powerreturn.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ExpiringToken#6cce
- Hash: sema:ExpiringToken#mh:SHA-256:6ccee8101ea0c081947b221568ce55d3b727412df9015a4ac8e876dc956efcaf

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ExpiringToken
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ExpiringToken.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
