---
title: "verify 2fa · RUAL Documentation"
description: "verify the user their 2fa code"
canonical: https://docs.rual.nl/block-types/users/function_user_verify_2fa
language: en
---

# verify 2fa

This block is part of the [`users`](https://docs.rual.nl/block-types/users) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

verify the user their 2fa code

- flow `flow`

- Auth required `object` The auth object which is returned from the signin action

- Method required `value` 2FA method that you want to verify

- 2FA Token required `value` 2FA token to verify

- flow `flow`

- User `object`

- Valid `condition`

| `yubikey` |
| --- |
| `otp` |
| `totp` |

A typical wiring for [verify 2fa](https://docs.rual.nl/block-types/users/function_user_verify_2fa): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [new object](https://docs.rual.nl/block-types/object/object_new_fields) feeds the `auth` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `method` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `token` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the verify 2fa block: typical wiring for verify 2fa.](https://docs.rual.nl/canvas-examples/function_user_verify_2fa.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
