get__mfa_methods

GET /mfa/methods

Get Available MFA Methods

Retrieve all available multi-factor authentication methods for the authenticated user, including their configuration status and availability.

TypeScript Client Library

// Note: This endpoint doesn't have a direct client method in the provided TypeScript client
// You would need to use the generic makeRequest method:
// this.makeRequest<any>('mfa/methods', 'GET', null);

Code Samples

# You can also use wget
curl -X GET https://backend.flashback.tech/mfa/methods \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Example responses

200 Response

{
  "success": true,
  "data": [
    {
      "type": "GOOGLE_AUTH",
      "name": "Google Authenticator",
      "description": "Time-based one-time password using Google Authenticator app",
      "isAvailable": true,
      "isConfigured": true,
      "isEnabled": true
    },
    {
      "type": "MAGIC_LINK",
      "name": "Magic Link",
      "description": "Email-based authentication using secure links",
      "isAvailable": true,
      "isConfigured": false,
      "isEnabled": false
    },
    {
      "type": "PASSKEY",
      "name": "Passkey",
      "description": "WebAuthn-based biometric or hardware key authentication",
      "isAvailable": true,
      "isConfigured": true,
      "isEnabled": true
    }
  ]
}

500 Response

{
  "success": false,
  "error": "Failed to get MFA methods"
}

Responses

Status
Meaning
Description
Schema

200

MFA methods retrieved successfully

Inline

500

Internal server error

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» data

[object]

false

none

Array of available MFA methods

»» type

string

false

none

MFA method type identifier

»» name

string

false

none

Human-readable method name

»» description

string

false

none

Detailed description of the method

»» isAvailable

boolean

false

none

Whether the method is available for setup

»» isConfigured

boolean

false

none

Whether the method is configured for the user

»» isEnabled

boolean

false

none

Whether the method is currently enabled

Status Code 500

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» error

string

false

none

Error message describing the issue

Enumerated Values

Parameter
Value
Description

» type

GOOGLE_AUTH

Google Authenticator TOTP

» type

MAGIC_LINK

Magic link email verification

» type

PASSKEY

WebAuthn passkey authentication

Last updated

Was this helpful?