incalculable-petabyte-84501
12/05/2024, 10:33 AMbrief-egg-61061
12/05/2024, 10:33 AMbrief-egg-61061
12/05/2024, 10:33 AMory patch oauth2-config --project <project-id> --workspace <workspace-id> \ --replace "/ttl/login_consent_request=\"2h\"" \ --format yaml
In this example, the duration is set to 2 hours. You can adjust the value as needed, using time units like "m" for minutes or "h" for hours [Configure token expiration time](https://www.ory.sh/docs/hydra/guides/client-token-expiration). It's important to note that this configuration sets how long the user has to submit login credentials and consent during the OAuth2 flow. After this period expires, a new login/consent challenge would need to be initiated. Remember that this is different from the expiration times of other tokens like access tokens, refresh tokens, or ID tokens, which have their own separate configurations.