<@U04UQ68083H> what represents TTL_AUTH_CODE in or...
# ory-copilot
r
@chilly-king-10285 what represents TTL_AUTH_CODE in ory hydra v1.11.7
b
A message from kapa.ai
Based on the information provided in the knowledge sources, I can answer your question about what represents TTL_AUTH_CODE in Ory Hydra v1.11.7. In Ory Hydra, TTL_AUTH_CODE represents the Time-To-Live (TTL) for authorization codes. Authorization codes are temporary codes that are exchanged for access tokens in the OAuth 2.0 flow. According to the [Ory documentation on configuring token expiration time](https://www.ory.sh/docs/hydra/guides/client-token-expiration), the default lifespan for authorization codes in Ory Hydra is ten minutes. You can configure this value using the Ory CLI. Here's an example of how to set the authorization code lifespan to five minutes:
Copy code
ory patch oauth2-config --project <project-id> --workspace <workspace-id> \     --replace "/ttl/authorization_code=\"5m\"" \     --format yaml
In this command,
"/ttl/authorization_code"
represents the configuration path for the authorization code TTL. The value
"5m"
sets the lifespan to 5 minutes. It's important to note that authorization codes are meant to be short-lived for security reasons, as they are temporary tokens used in the OAuth 2.0 authorization flow.
r
@chilly-king-10285 what happens if this TTL_AUTH_CODE is lower than TTL_LOGIN_CONSENT_REQUEST
b
A message from kapa.ai
New message text here