latestOpenAPI 3.1.0Apache License Version 2.02026-08-17498525913.3 KB

40169ccdec5c

two-factor-auth-controller

Get available 2FA providers (getAvailableTwoFaProviders)

Get the list of 2FA provider infos available for user to use. Example:

[
  {
    "type": "EMAIL",
    "default": true,
    "contact": "ab*****ko@gmail.com"
  },
  {
    "type": "TOTP",
    "default": false,
    "contact": null
  },
  {
    "type": "SMS",
    "default": false,
    "contact": "+38********12"
  }
]
get/api/auth/2fa/providers

Response

OK

type'TOTP' | 'SMS' | 'EMAIL' | 'BACKUP_CODE'
isDefaultboolean
contactstring
minVerificationCodeSendPeriodinteger
defaultboolean