> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Handling OTP

> The notifications plugin can also be used for handling the one time password (OTP) generation and validation flow.

The flow is made of two steps, the OTP generation and the OTP validation.

### OTP Configuration

The desired character size and expiration time of the generated one-time-passwords can also be configured using the following environment variables:

* `FLOWX_OTP_LENGTH` — number of digits in the generated code. **Default:** `4`
* `FLOWX_OTP_EXPIRETIMEINSECONDS` — how long the OTP stays valid, in seconds. **Default:** `6000`

Let's go through the examples for both steps:

> [card] [Generate OTP](https://docs.flowx.ai/6.x/docs/platform-deep-dive/core-extensions/content-management/notifications-plugin/otp-flow/generate-otp.md)

> [card] [Validate OTP](https://docs.flowx.ai/6.x/docs/platform-deep-dive/core-extensions/content-management/notifications-plugin/otp-flow/validate-otp.md)


## Related topics

- [Generate OTP](https://docs.flowx.ai/6.x/docs/platform-deep-dive/core-extensions/content-management/notifications-plugin/otp-flow/generate-otp.md)
- [Validate OTP](https://docs.flowx.ai/6.x/docs/platform-deep-dive/core-extensions/content-management/notifications-plugin/otp-flow/validate-otp.md)
- [Handling decisions in the flow](https://docs.flowx.ai/6.x/docs/flowx-designer/managing-a-project-flow/handling-decisions-in-the-flow.md)
- [Notifications plugin setup](https://docs.flowx.ai/6.x/setup-guides/notifications-plugin-setup.md)
- [FlowX.AI 5.9.0 Release Notes](https://docs.flowx.ai/release-notes/v5.x/v5.9.0-june-2026/v5.9.0-june-2026.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.