modern-kite-83978
09/18/2025, 7:42 AMmethods:
link:
config:
lifespan: 24h
flows:
verification:
lifespan: 24h
configurations for Ory Network-hosted Kratos?chilly-king-10285
09/18/2025, 7:42 AMchilly-king-10285
09/18/2025, 7:42 AMlink
method's lifespan
and the verification flow's lifespan
in Ory Network-hosted Kratos. To do this, you need to: 1. Download your current Ory Identities configuration using the Ory CLI: ory get identity-config --project <project-id> --workspace <workspace-id> --format yaml > identity-config.yaml
2. Edit the configuration file (identity-config.yaml
) to set your desired values: yaml selfservice: methods: link: enabled: true config: lifespan: 24h # Set the link lifespan here flows: verification: enabled: true lifespan: 24h # Set the verification flow lifespan here use: link
3. Upload the updated configuration back to Ory Network: ory update identity-config --project <project-id> --workspace <workspace-id> --file identity-config.yaml
This process allows you to customize the lifespan for both the magic link and the verification flow as needed for your project hosted on Ory Network [Docs: Account verification](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation) [Docs: Account recovery and password reset](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#configuration).modern-kite-83978
09/18/2025, 7:44 AMchilly-king-10285
09/18/2025, 7:44 AMchilly-king-10285
09/18/2025, 7:44 AMlifespan
property for the respective flows in your configuration. For example: yaml selfservice: flows: login: lifespan: 30m # Set login flow timeout to 30 minutes registration: lifespan: 30m # Set registration flow timeout to 30 minutes
You can update these settings using the Ory Console or by downloading, editing, and uploading your configuration as described previously. This will help reduce disruptive timeouts for users working with custom UIs [Docs: Deploy Kratos Example](https://www.ory.sh/docs/kratos/guides/deploy-kratos-example#configure-user-interface). If a flow expires, the user will see an error and must restart the flow. There is currently no built-in automatic retry or redirect to a new flow in the default Account Experience UI, which is a known UX issue discussed by the community [GitHub Issue: Login flow expired error](https://github.com/ory/network/issues/417).