adventurous-grass-85643
11/08/2022, 8:21 AMconfig.yaml
file. I have changed the value from 1hr to 72hr but still it's not changing after building. and also I am little confused with how to use refresh token to get new access_token. any ideas ? Thanks 🙂chilly-balloon-35803
11/08/2022, 10:25 AMttl:
access_token: 72h
If this still does not work, an alternative way to set this is through the environmental value:
_`TTL_ACCESS_TOKEN=72h`_chilly-balloon-35803
11/08/2022, 10:33 AMgrant_type=refresh_token
refresh_token=*your_refresh_token*
https://www.ory.sh/docs/reference/api#tag/oAuth2/operation/oauth2TokenExchangeadventurous-grass-85643
11/08/2022, 10:58 AMinternal/config/config.yaml
and the the changes - ttl:
# configures how long a user login and consent flow may take. Defaults to 1h.
login_consent_request: 10h
# configures how long access tokens are valid. Defaults to 1h.
access_token: 10h
# configures how long refresh tokens are valid. Defaults to 720h. Set to -1 for refresh tokens to never expire.
refresh_token: 720h
# configures how long id tokens are valid. Defaults to 1h.
id_token: 10h
# configures how long auth codes are valid. Defaults to 10m.
auth_code: 1h
then I did sudo docker-compose -f quickstart.yml -f quickstart-postgres.yml up --build -d
Thanks for the support I will try with environment value.chilly-balloon-35803
11/08/2022, 11:10 AMadventurous-grass-85643
11/08/2022, 11:27 AMadventurous-grass-85643
11/09/2022, 11:18 AMaccess_token
duration by adding them to contrib/quickstart/5-min/hydra.yml
file and refresh
token flow is also working. Thanks for the support 😃 @chilly-balloon-35803.chilly-balloon-35803
11/09/2022, 11:35 AM