refined-helicopter-87799
09/07/2025, 12:54 PMchilly-king-10285
09/07/2025, 12:54 PMchilly-king-10285
09/07/2025, 12:54 PMyaml selfservice: methods: code: enabled: true config: lifespan: 15m # Defines how long the code is valid for. Default: 1h.
You can adjust the lifespan
value to your preferred duration (e.g., 15m
for 15 minutes). This setting applies to flows like account recovery, verification, and passwordless login, and can be managed via the Ory Console or CLI as described in the documentation [Account recovery and password reset](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#configuration) and [Address verification](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). So, yes, the OTP validity period is configurable in Ory.refined-helicopter-87799
09/07/2025, 12:55 PMchilly-king-10285
09/07/2025, 12:55 PMchilly-king-10285
09/07/2025, 12:55 PM