Updates the Multi-Factor Authentication (MFA) information of a user.
The generated link with an enrollment
rel
link must be followed to verify the existing MFA or enroll new MFA.
User MFA update URL created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
status | string Status of Multi-Factor Authentication (MFA) enrollment. |
type | string Type of MFA enrollment.
Type |
lastAuthTime | string <date-time> Date and time when MFA verification is most recently passed. To disable MFA, no more than 10 minutes must elapse between this value and the request to disable MFA. |
Array of objects Related links. | |
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
const mfa = await api.profile.updateMfa(); console.log(mfa.fields._links);
{- "status": "active",
- "type": "duo",
- "lastAuthTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}