Retrieves Multi-Factor Authentication (MFA) status of a user.
User MFA status retrieved.
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.getMfa(); console.log(mfa.fields.status, mfa.fields.type, mfa.fields.lastAuthTime);
{- "status": "active",
- "type": "duo",
- "lastAuthTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}