MCPcopy Index your code
hub / github.com/AgentOps-AI/agentops / _generate_jwt_timestamp

Function _generate_jwt_timestamp

app/api/agentops/api/auth.py:15–17  ·  view source on GitHub ↗

Generate a timestamp for the JWT token expiration.

()

Source from the content-addressed store, hash-verified

13
14
15def _generate_jwt_timestamp() -> int:
16 """Generate a timestamp for the JWT token expiration."""
17 return int((datetime.now() + timedelta(days=JWT_EXPIRATION_DAYS)).timestamp())
18
19
20def _assert_jwt_secret() -> None:

Callers 3

valid_jwt_payloadFunction · 0.90
from_projectMethod · 0.85
generate_dev_tokenFunction · 0.85

Calls 1

timestampMethod · 0.80

Tested by 1

valid_jwt_payloadFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…