rough-kilobyte-98919
09/12/2025, 7:21 AMchilly-king-10285
09/12/2025, 7:21 AMchilly-king-10285
09/12/2025, 7:21 AM"totp"
- `totp_code`: the TOTP code provided by the user Optionally, for browser flows, you may also need to include the csrf_token
. Here is the relevant structure for the request body: json { "method": "totp", "totp_code": "123456", "csrf_token": "your-csrf-token" // only for browser flows }
This means that during the update of the login flow, Ory Kratos expects the OTP (TOTP code) to be submitted, and it will validate the code as part of the authentication process. If the code is invalid, an error will be returned; if valid, the flow will proceed successfully [Ory API Reference – updateLoginFlow](https://raw.githubusercontent.com/ory/docs/master/docs/reference/api.json) [Kratos API Reference – updateLoginFlow](https://raw.githubusercontent.com/ory/kratos/master/spec/api.json).rough-kilobyte-98919
09/12/2025, 7:22 AMchilly-king-10285
09/12/2025, 7:22 AMchilly-king-10285
09/12/2025, 7:22 AM