Token manager

TokenManager documents issuing, verifying, and revoking tokens with an optional time-to-live (TTL).

Issue and verify

from EasyModel import TokenManager

tokens = TokenManager()
token = tokens.issue("user1")
print(tokens.verify(token))

The example follows the usage in the project quickstart. Review expiration, storage, and verification behavior in the installed package before relying on tokens for access control.

PreviousNext