Skip to content

/problems/mfa/invalid-code⚓︎

Problem

This is a description of a specific error response that you can receive when using the INVERS OneAPI via REST.1

Check out our API Basics to learn more about the basic structure of all error responses and to find out how you should handle them.

{
    "type": "/problems/mfa/invalid-code",
    "type_documentation": "https://developers.invers.com/problems/mfa/invalid-code",
    "title": "MFA code invalid.",
    "status": 401,
    "detail": "The provided MFA code is invalid.",
    "flow_id": "5e77e3e3-48ab-4955-8ab3-1c62339096ab"
}

Meaning⚓︎

This problem type occurs when the Multi-Factor Authentication (MFA) code provided during the authentication process is invalid.

Details⚓︎

  • Use the error response’s type property to handle specific errors and exception handling within your application. It’s comparable to an error code.
  • The detail property contains additional, more human-readable information about the problem or error. This is explanatory text and you should not have any exception handling and error handling code depend on it, as it may change.

Detail examples⚓︎

The following examples are typical texts which you might receive in the error response’s detail property. Note that it is not a complete list of all possible cases. Therefore expect to receive error responses with a detail property value not listed below.

The provided MFA code is invalid.

You may have entered the wrong code, or the code may have expired.

Possible solutions:

  • Verify that the MFA code is correct and matches the one generated by your authenticator app or was sent to you by email.
  • Ensure that the code is entered within the valid time window. MFA codes typically expire after a short period.

  1. The flow_id is specific to each API call, so it will be different in your case. However, type, title and status will match your actual error response if you receive the error described on this page.