How to configure access token expiration time

  1. How to configure expire time of access token when we create client through REST Api.
  2. How to get refresh token when we call /oauth2/token Api.

Hey Arun,
I think you can configure the duration of the access token in the configuration file for your testing environment.
See this https://www.ory.sh/hydra/docs/reference/configuration/ and look for “Configures time to live”

Also maybe the remember for parameter at the consent stage?

Let me know if that helped.

1 Like