# 2fa authentication code verification API

**URL:** <https://community.auth0.com/t/2fa-authentication-code-verification-api/182343>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [February 18, 2025, 8:48am UTC](https://community.auth0.com/t/2fa-authentication-code-verification-api/182343 "2025-02-18T08:48:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![exchanga](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/exchanga/32/65100_2.png) [@exchanga](https://community.auth0.com/u/exchanga)\
**Post date:** [February 18, 2025, 8:48am UTC](https://community.auth0.com/t/2fa-authentication-code-verification-api/182343/1 "2025-02-18T08:48:18Z")

</div>

in our application we want to configer the 2fa/code verification factor we need the API for this .

scenario:

when a user enter the 2fa/code and hit on verification we need the API to check the entered code/2fa is correct or wrong.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [February 24, 2025, 1:01am UTC](https://community.auth0.com/t/2fa-authentication-code-verification-api/182343/3 "2025-02-24T01:01:04Z")

</div>

Hi @exchanga

Welcome to the Auth0 Community!

Thank you for posting your question. If you want to rely on our built-in options you read more about it here → [Multi-Factor Authentication (MFA)](https://auth0.com/docs/secure/multi-factor-authentication)

If you want to build/use your custom solution, you can use our Login Trigger to determine the current state of the user and allow or deny the login based on the information from your system, as this action is synchronous. [Login Trigger](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 10, 2025, 1:01am UTC](https://community.auth0.com/t/2fa-authentication-code-verification-api/182343/4 "2025-03-10T01:01:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
