listMfaCredentials
Examples
import com.reach5.identity.sdk.core.models.AuthToken
import com.reach5.identity.sdk.core.models.Profile
val authToken: AuthToken = // The authentication token obtained from login or signup.
client.listMfaCredentials(
authToken = authToken,
success = { _ -> ... }, // Do something
failure = { error -> ... } // Handle a ReachFive error
)
Parameters
Authorization token of the profile retrieved from login.
|
|||||||||||||||||
Callback called once the request has failed. You’ll get a |
|||||||||||||||||
Callback called once the request has succeeded. |
Response
Type: Promise<MfaCredentialsResponse>
credentials |
An array of objects, each containing information on a specific credential. |
type |
Specifies the type of credential.
|
createdAt |
The date on which the credential was created.
|
friendlyName |
The user-friendly name for the credential. |
phone_number |
The user’s phone number. |
{
credentials: [{
type: "sms",
createdAt: "2024-12-19"
}]
}
ReachFiveError
message |
The message of the error. |
||||||||||||||
getErrorCode() |
The error code’s enumeration value. |
||||||||||||||
code |
The HTTP status code or SDK error code. |
||||||||||||||
exception |
The stack trace of the error. |
||||||||||||||
data |
Additional data about the error.
|