<@U04UQ68083H> What is the difference between the ...
# ory-copilot
s
@chilly-king-10285 What is the difference between the oauth2.grant.jwt.max_ttl setting and the strategies.ttl setting in the oauth config?
c
A message from kapa.ai
I'm sorry, but the provided knowledge sources do not contain information about a
strategies.ttl
setting in the OAuth config. However, I can tell you about the
/oauth2/grant/jwt/max_ttl
setting. This setting controls the maximum time-to-live (TTL) for a JSON Web Token (JWT). It restricts the time window during which the JWT can be used. You can configure this setting using the Ory CLI as shown in the example below:
Copy code
bash ory patch oauth2-config \     --replace "/oauth2/grant/jwt/max_ttl=1h"
This command sets the maximum TTL for a JWT to 1 hour. After this period, the JWT will no longer be valid. For more information about the
strategies.ttl
setting, I would recommend checking the Ory documentation or the specific guide for the feature you're using. Sources: - [Configuring JWT validation parameters](https://www.ory.sh/docs/hydra/guides/jwt#configuring-jwt-validation-parameters) - [Ory patch oauth2-config](https://www.ory.sh/docs/cli/ory-patch-oauth2-config#ory-patch-oauth2-config)